An example implementation of GitHub Flow with CI & CD
The following settings are considered essential to achieve maximum workflow results:
- Always suggest updating pull request branches
- Allow auto-merge
- Automatically delete head branches
- Limit how many branches and tags can be updated in a single push
Up to
5
branches and tags can be updated in a push
main
main
- Require a pull request before merging
- Require approvals
1
- Require approvals
- Require status checks to pass before merging
- test
- lint
- Require deployments to succeed before merging
- review
- Require a pull request before merging