-
I have a repository and want to enforce a branch system by having the master branch protected and requiring at least 1 approving review for the Pull request to be mergeable. Right now am I the only person contributing to the project and I (ab)use my admin privileges to bypass this approval-requirement since I can’t approve my own PRs (Can I tho? Like is there a way?) My question now is, if I can use the GitHub Actions account to approve the changes, so that the PR would become mergeable. I hope that there is a solution for this. Thanks in advance for any solutions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Andre601:
I don’t think so. At least the GitHub web interface does not let you do that. I’m not sure if the API might allow it.
As I understand, you still want to be able to bypass the approval process for yourself. Are you an administrator too or the owner of the repo? I suppose that the owner can still bypass the approval even if they are mandatory for admins (“Include administrators” at the bottom): If that doesn’t work for you, then yes, you can let a workflow approve your pull requests, e.g. using the
You may need to restrict who can approve PRs though. I saw spam bots randomly approving PRs in public repos, for instance. |
Beta Was this translation helpful? Give feedback.
-
I used a action for auto-approving Prs with an if statement and works fine. Thanks for the info and clarification tho. |
Beta Was this translation helpful? Give feedback.
I don’t think so. At least the GitHub web interface does not let you do that. I’m not sure if the API might allow it.
As I understand, you still want to be able to bypass the approval process for yourself. Are you an administrator too or the owner of the repo? I suppose that the owner can still bypass the approval even if they are mandatory for admins (“Include administrators” at the bottom):
If that doesn’t work for you, then yes, you can let a workflow approve your pull requests, e.g. using the
g…