Skip to content
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

Enable branch protections and auto-merging for the repo #4908

Closed
msridhar opened this issue Sep 19, 2021 · 1 comment
Closed

Enable branch protections and auto-merging for the repo #4908

msridhar opened this issue Sep 19, 2021 · 1 comment

Comments

@msridhar
Copy link
Contributor

Branch protections let you enforce rules on PRs before merging, like CI jobs must pass or there must be one approving review (the rules can be configured such that administrators can override them):

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches

Once branch protections are in place, an auto-merge functionality becomes available, where GitHub can automatically merge a PR once all rules have been satisfied:

https://docs.github.com/en/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request

We recently enabled this on the WALA repository, and I've found the auto-merge functionality to be a nice productivity boost. When appropriate you can enable it on a PR, and then there is no need to come back to GitHub to click merge after the CI jobs have passed and the reviews have gone through. This might be nice to have for the Checker Framework repo as well.

@msridhar
Copy link
Contributor Author

Looks like branch protections have been enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant