At SourceLair we follow the GitHub Flow to develop our software and release regularly. You can read more about the GitHub flow and also see it visualised at https://guides.github.com/introduction/flow/.
Below we provide you with the required steps for starting work on a new feature or bug fix in your project.
- Save your current changes (if any). You can either commit them or stash them.
- Checkout the
master
branch locally. - Pull from the
upstream
remote to synchronise your localmaster
branch withupstream
. - Push to the
origin
remote to synchronise your personal fork withupstream
. - Create a new branch for your upcoming work.
- Write and commit your code.
- Open a new Pull Request in GitHub
No, Pull Requests will be updated automatically when pushing to the same branch.
Each Pull Request should attempt to resolve a single issue. More particualrly, the best practice is resolving one and only one GitHub issue with each Pull Request (issues documentation: https://help.github.com/articles/about-issues/). You should avoid opening a single Pull Request to resolve multiple unrelated issues 🙏.