Skip to content

Commit ec467c3

Browse files
GiteaBotwolfogre
andauthored
Set owner id to zero when GetRegistrationToken for repo (#31725) (#31729)
Backport #31725 by @wolfogre 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. Co-authored-by: Jason Song <[email protected]>
1 parent 7b37f77 commit ec467c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
505505
// "200":
506506
// "$ref": "#/responses/RegistrationToken"
507507

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

511511
var _ actions_service.API = new(Action)

0 commit comments

Comments
 (0)