Skip to content

Commit 720dcc2

Browse files
wolfogreGiteaBot
authored andcommitted
Set owner id to zero when GetRegistrationToken for repo (go-gitea#31725)
Fix go-gitea#31707. It's split from go-gitea#31724. Although go-gitea#31724 could also fix go-gitea#31707, it has change a lot so it's not a good idea to backport it.
1 parent 7b37f77 commit 720dcc2

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
@@ -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)