Skip to content

Commit

Permalink
Update Rule “protect-your-master-branch/rule”
Browse files Browse the repository at this point in the history
  • Loading branch information
wicksipedia committed Sep 29, 2023
1 parent 7c84b02 commit aa7a7ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rules/protect-your-master-branch/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ archivedreason: null
guid: 93bfec41-6b37-4413-a660-931fffa88d44
---

Use the VSTS Branch Policies feature. This is a super sexy feature.
Branch protection is a feature in version control software that allows teams to define rules and restrictions around who can make changes to specific branches, what types of changes are allowed, and if there are conditions that have to be met.

<!--endintro-->

This can include:

- number of reviewers
- linked work items e.g. PBIs (super useful to track back to why the code was changed)
- any feedback has been addressed/resolved
- enforcing specific merge types
- checking that builds pass
- checking other services e.g. code quality like SonarQube
- automatically adding specific people to review the code


::: bad
![Figure: Bad example – no protection – anyone can make unreviewed changes](protect-branch-bad.jpg)
Expand Down

0 comments on commit aa7a7ea

Please sign in to comment.