-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict merge to users with write access #67
Comments
I think there are several ways to do it:
I also want to give a warning regarding GH actions and open source repositories: as discussed in #46, the action will not run in the forks, see this comment: #46 (comment). Maybe you don't need to, but if you require a workflow where actions should also run in the fork repositories, it will probably not work. |
That sounds right. I think it's best to avoid duplication between Github access and
Thanks for the information. I was aware of the limitation, and no, we luckily don't need this, nor do I envision we will. |
I don't want the PR to have to be authored by someone with write access in order to be auto-completed. I'd like the label to cause any PR to auto-complete. But the label should be automatically removed when the PR is pushed to by someone without write access. That way, I can review any PR, decide to auto-complete it, but if after that point the author pushes to the PR, it guarantees reviewers have an opportunity to review the new changes before merging. |
Github also offers an option to dismiss approvals in case a PR is changes after an approval. |
Ya, that doesn't get us what I'm going for. I don't want to dismiss the label when write privileged people push. FWIW, I've abandoned all efforts to use GitHub Actions for this since github workflows don't trigger by other workflows, so PR checks' completing doesn't cause the Action to reconsider merging the PR. I've switched to a GitHub App which has a lot more flexibility. |
I think the issue from the original post would be solved by having the new MERGE_FILTER_AUTHOR_ROLE option, but I don't need this at the moment and I don't see myself implementing this anytime soon. However, feel very free to work on this and if you create a PR for it, I will have a look at it in a timely manner! I will close this issue for now. If you have any new information or need any help, feel free to reopen it! |
I've discovered this action recently and would like to use it for the D Programming Language organization.
Currently we have a similar workflow, where users put an
auto-merge
label and our bot will merge it once the PR is mergeable. We also haveauto-merge-squash
, etc..., so this action would be a perfect replacement for it.However we are looking into transitioning our issues from Bugzilla to Github, and as such want to give triage role to users. Currently bugzilla allows anyone to do triage (it's just a matter of registering an email), so I envision we'll be quite liberal with that role. But obviously, we do not want to allow people with triage access to have write access through
automerge-action
. Is there a way to support this ?The text was updated successfully, but these errors were encountered: