Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.79 KB

File metadata and controls

38 lines (26 loc) · 1.79 KB

Overview

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.

Branch Strategy for Tasks

If you use GitHub to manage issues, replace task to issue.

Image

When you are assigned a new task:

  1. 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:

  1. 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.
  2. 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,

References

Azure DevOps - Branch Organization GitHub flow