Unnecessary pull request restriction #3413

Closed
opened 2025-11-02 05:12:11 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @PlanetRenox-zz on GitHub (Jun 2, 2019).

  • Gitea version: 1.8.2
  • Operating system: CentOs 7
  • Database:
    • SQLite
  • Can you reproduce the bug?
    • Yes

Description

Unable to approve own pull request if you are the only whitelisted user capable of approving requests.

This restriction seems unnecessary.

Originally created by @PlanetRenox-zz on GitHub (Jun 2, 2019). - Gitea version: 1.8.2 - Operating system: CentOs 7 - Database: - [x] SQLite - Can you reproduce the bug? - [x] Yes ## Description Unable to approve own pull request if you are the only whitelisted user capable of approving requests. This restriction seems unnecessary.
GiteaMirror added the proposal/rejected label 2025-11-02 05:12:11 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Oct 26, 2022):

If you are the only approver, why not just merge it?

From another point of view, "approve own pull request" seems also unnecessary .... GitHub also do not allow self-approve IIRC.

@wxiaoguang commented on GitHub (Oct 26, 2022): If you are the only approver, why not just merge it? From another point of view, "approve own pull request" seems also unnecessary .... GitHub also do not allow self-approve IIRC.
Author
Owner

@delvh commented on GitHub (Oct 26, 2022):

We allow approving your own PR at all?
No, just tested it, that's not possible, and I would like to keep it this way…

@delvh commented on GitHub (Oct 26, 2022): We allow approving your own PR at all? No, just tested it, that's not possible, and I would like to keep it this way…
Author
Owner

@eeyrjmr commented on GitHub (Oct 26, 2022):

There is a way and it is if you are the admin of the repository.

I opened a feature request to disable this since code review is beneficial (the repo admin can turn it off if they need to force something through).

@eeyrjmr commented on GitHub (Oct 26, 2022): There is a way and it is if you are the admin of the repository. I opened a feature request to disable this since code review is beneficial (the repo admin can turn it off if they need to force something through).
Author
Owner

@wxiaoguang commented on GitHub (Oct 26, 2022):

There is a way and it is if you are the admin of the repository.

If they are the only user, why not just consider "Merge it" as approved and "Close it" as rejected? Why someone needs to approve their own PRs?

@wxiaoguang commented on GitHub (Oct 26, 2022): > There is a way and it is if you are the admin of the repository. If they are the only user, why not just consider "Merge it" as approved and "Close it" as rejected? Why someone needs to approve their own PRs?
Author
Owner

@eeyrjmr commented on GitHub (Oct 26, 2022):

There is a way and it is if you are the admin of the repository.

If they are the only user, why not just consider "Merge it" as approved and "Close it" as rejected? Why someone needs to approve their own PRs?

Why enable branch protection if you are the only user.

@eeyrjmr commented on GitHub (Oct 26, 2022): > > There is a way and it is if you are the admin of the repository. > > If they are the only user, why not just consider "Merge it" as approved and "Close it" as rejected? Why someone needs to approve their own PRs? Why enable branch protection if you are the only user.
Author
Owner

@wxiaoguang commented on GitHub (Oct 26, 2022):

IIRC even if the branch protection is enabled, the only user still can merge by the UI.

@wxiaoguang commented on GitHub (Oct 26, 2022): IIRC even if the branch protection is enabled, the only user still can merge by the UI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3413