Skip to content

Commit

Permalink
Set owner id to zero when GetRegistrationToken for repo (#31725) (#31729
Browse files Browse the repository at this point in the history
)

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 <i@wolfogre.com>
  • Loading branch information
GiteaBot and wolfogre authored Jul 30, 2024
1 parent 7b37f77 commit ec467c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
// "200":
// "$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)
Expand Down

0 comments on commit ec467c3

Please sign in to comment.