-
Notifications
You must be signed in to change notification settings - Fork 10
Git Workflow
Hrishikesh Paul edited this page Feb 6, 2021
·
1 revision
Below are a few rules to comply with our Git Workflow
-
main: Production branch -
release: Branch that will have the changes that will be going to production -
hot-fixes: Quick fixes to production -
develop: Main branch to commit features/bug fixes etc to. -
<action>/<initials>/<name>: See below for individual branch naming.
To keep the workflow clean, branch names consist of actions, initials and name.
-
feat: If the branch is a feature branch. remember to branch out for develop while doing this. -
bug: If the branch is a bug fix branch. -
hot: If the branch consists of hot fixes from the release branch. -
style: If the branch is solely for styling. -
ref: If the branch is a refactoring branch.
Your first name's first letter and last name's last letter. Example, form Hrishikesh Paul - hp.
-
feat/hp/client_login- Feature branch to add login functionality to the client. -
bug/hp/gateway_google_auth- Bug fix branch to fix google auth bugs on the gateway.
While committing, please use a minimum of one line to describe what the commit does. Prefix the message with either of the following, depending on your task:
-
chore: If implementing somethign new or adding onto some feature. (git commit -m 'chore: implemented login feature on the client') -
fix: If fixing a bug or a related issue. (git commit -m 'fix: issue with auth token not being passed form the gateway') -
style: If adding styling, documentation or linting changes to the code. (git commit -m 'style: changed the color of the logout button') -
ref: If you're refactoring a piece of code (git commit -m 'ref: improved logic of the mega-data-extractor by eliminating nested loops')
- Review your code before pushing it
- Make a pull request
- Add a small title/description for the PR
- Assign yourself (or other members of the team)
- Add reviewers
- Add a suitable tag
- Add a suitable milestone
- Add a suitable project 9.Add checkboxes for reviewers