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.
pull/31721/head^2
Jason Song 6 months ago committed by GitHub
parent d39bce7f00
commit 81fa471119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      routers/api/v1/repo/action.go

@ -504,7 +504,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
// "200": // "200":
// "$ref": "#/responses/RegistrationToken" // "$ref": "#/responses/RegistrationToken"
shared.GetRegistrationToken(ctx, ctx.Repo.Repository.OwnerID, ctx.Repo.Repository.ID) shared.GetRegistrationToken(ctx, 0, ctx.Repo.Repository.ID)
} }
var _ actions_service.API = new(Action) var _ actions_service.API = new(Action)

Loading…
Cancel
Save