Branch Strategy for Issue defines how you should create/maintain/merge a feature branch when a new task is assigned to you. There are several well known flows such as GitHub flow and git flow. This strategy is based on GitHub flow.
A feature branch should be named as your account/issue id/description. Or in case you use Azure DevOps for manage tasks, your account/task id/description.
If you use GitHub to manage issues, replace task to issue.
When you are assigned a new task:
- Create a new feature branch to modify code.
- Direct commit to main branch is blocked
- The Feature branch should be named as:
- your account/task id/description. i.e., kenakamu/125/BranchNamingConvention
- if you use github, then we recommend to use your account/issue id/description
When you finished code modification:
-
Create a pull request to merge the changes to main branch.
- Clear title, and enough detail in the description
- At least two reviewer approvals are required
- Successful build of CI pipeline is required if applicable.
- Link to related task id is required if applicable.
-
Keep a high quality, up-to-date main branch.
- main branch should pass all tests
- main branch should be built without error
- About what is high quality code, please also refer to,
- Microsoft CSE playbook Eng Fundamentals Checklist
