Hello all! I just created an organization on GitHub containing a repository for the Blackjack project:
https://github.com/CoderanchCorral/Blackjack
I set up the repository so that it has a protected master branch, which can only be pushed to using pull requests. Pull requests have the following policies:
- At least two members must perform a code review and approve the pull request.
- Branches that are merged into master must be up to date (must contain all commits also present in master).
- Branches that are merged into master must have a successful build status.
All members of the project are free to create new branches. Branches from master are automatically built and tested using Travis-ci.
I took the liberty of initializing the master branch with the Mozilla Public License Version 2.0, we can probably change this if people feel strongly about it.
To
test the setup, I created a branch project/readme with a single commit to update the readme with a badge displaying the build status of the master branch and then I created a pull request. The pull request can not be completed because it lacks a code review and the build currently fails (because there is no script to build the project).
Later I will update the pull request so it will build successfully, but I first need two approvals from other members so I can test that approvals are discarded when I push a new commit.