GitHub Repository Baseline Settings
Below are the recommended settings we suggest, you can ignore if some settings wouldn't suit your use-case.
Pull Requests
In the repository, go to Settings → General.
Uncheck below and keep only Allow squash merging checked
- Allow merge commits
- Allow rebase merging
Check Always suggest updating pull request branches
Check Automatically delete head branches
Branch Protection Rules
In the repository, go to Settings → Branches.
Create a Branch name pattern called main (trunk)
- Check Require a pull request before merging
- Check Require approvals
- Check Require review from Code Owner
- Check Require status checks to pass before merging
- Check Require branches to be up to date before merging
- Check Do not allow bypassing the above settings
Create a Branch name pattern called release/v* and apply above settings