-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/bug
Description
- 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
6543, YakoYakoYokuYoku and lunny
Metadata
Metadata
Assignees
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/bug