You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gitea version (or commit ref): 1.14.0+dev-374-g287b59480
Description
Users may want to close their pull request via API.
To do so, currently only PATCH /repos/{owner}/{repo}/pulls/{index} is available.
This API is enabled only for repo owners, meaning a PR author gets 403 Forbidden, even if they only update the state field.
Either make the permission check more granular, or add a separate API to open/close PRs.
I believe the same applies for Issues (PATCH /repos/{owner}/{repo}/issues/{index}), but I didn't verify
This problem does not apply to the matchin issues endpoint
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description
Users may want to close their pull request via API.
To do so, currently only
PATCH /repos/{owner}/{repo}/pulls/{index}
is available.This API is enabled only for repo owners, meaning a PR author gets
403 Forbidden
, even if they only update thestate
field.Either make the permission check more granular, or add a separate API to open/close PRs.
I believe the same applies for Issues (PATCH /repos/{owner}/{repo}/issues/{index}
), but I didn't verifyThis problem does not apply to the matchin issues endpoint
The text was updated successfully, but these errors were encountered: