Branching and Pull Requests - MotivationalModelling/mm-local-editor GitHub Wiki
Branches and Pull Requests
Branch Naming Conventions
All branches should follow this pattern:
[issue-number]-[name-of-issue]
Link the branch to an issue number, followed by a short lower-case description. Use hyphens instead of spaces.
Examples:
245-document-release-process99-document-installation-deployment-and-release123-good-issue-name
It is recommended that you create a branch using GitHub and not the CLI.
Pull Request Workflow
For general code changes, create a branch from develop, make your changes, and open a pull request into develop.
git fetch origin
git switch develop
git pull develop
git switch -c 123-your-branch-name
Once you have made your changes:
git add .
git commit -m "make a good commit message"
git push -u origin 123-your-branch-name
Create the pull request with develop as the base branch. Make sure that all checks pass and that there are no merge conflicts, then request a review.