-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XS✔ ◾ fix protect-your-master-branch (#6879)
* fix protect-your-master-branch * 💚Fix Category * Update rule.md --------- Co-authored-by: Tiago Araújo [SSW] <[email protected]>
- Loading branch information
Showing
6 changed files
with
44 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 43 additions & 44 deletions
87
rules/protect-your-master-branch/rule.md → rules/protect-your-main-branch/rule.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,43 @@ | ||
--- | ||
type: rule | ||
title: Do you protect your main branch? aka branch protection | ||
uri: protect-your-main-branch | ||
authors: | ||
- title: Adam Cogan | ||
url: https://ssw.com.au/people/adam-cogan | ||
- title: Matt Wicks | ||
url: https://ssw.com.au/people/matt-wicks | ||
- title: Gordon Beeming | ||
url: https://www.ssw.com.au/people/gordon-beeming/ | ||
- title: Jernej Kavka | ||
url: https://ssw.com.au/people/jernej-kavka | ||
related: [] | ||
redirects: | ||
- do-you-protect-your-master-branch | ||
created: 2017-09-12T22:35:37.000Z | ||
archivedreason: null | ||
guid: 93bfec41-6b37-4413-a660-931fffa88d44 | ||
--- | ||
|
||
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) | ||
::: | ||
|
||
|
||
::: good | ||
![Figure: Good example – the branch protected](protect-branch-good.jpg) | ||
::: | ||
--- | ||
type: rule | ||
title: Do you protect your main branch? aka branch protection | ||
uri: protect-your-main-branch | ||
authors: | ||
- title: Adam Cogan | ||
url: https://ssw.com.au/people/adam-cogan | ||
- title: Matt Wicks | ||
url: https://ssw.com.au/people/matt-wicks | ||
- title: Gordon Beeming | ||
url: https://www.ssw.com.au/people/gordon-beeming/ | ||
- title: Jernej Kavka | ||
url: https://ssw.com.au/people/jernej-kavka | ||
related: [] | ||
redirects: | ||
- do-you-protect-your-master-branch | ||
- protect-your-master-branch | ||
created: 2017-09-12T22:35:37.000Z | ||
archivedreason: null | ||
guid: 93bfec41-6b37-4413-a660-931fffa88d44 | ||
--- | ||
|
||
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) | ||
::: | ||
|
||
::: good | ||
![Figure: Good example – The branch protected](protect-branch-good.jpg) | ||
::: |
Binary file not shown.
Binary file not shown.