Skip to content

Commit 81fa471

Browse files
authored
Set owner id to zero when GetRegistrationToken for repo (#31725)
Fix #31707. It's split from #31724. Although #31724 could also fix #31707, it has change a lot so it's not a good idea to backport it.
1 parent d39bce7 commit 81fa471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/action.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
504504
// "200":
505505
// "$ref": "#/responses/RegistrationToken"
506506

507-
shared.GetRegistrationToken(ctx, ctx.Repo.Repository.OwnerID, ctx.Repo.Repository.ID)
507+
shared.GetRegistrationToken(ctx, 0, ctx.Repo.Repository.ID)
508508
}
509509

510510
var _ actions_service.API = new(Action)

0 commit comments

Comments
 (0)