Skip to content
Snippets Groups Projects
Commit ba466c86 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Add documentation for the auto-protected branches feature


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent be041934
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,4 +28,20 @@ For those workflows, you can allow everyone with write access to push to a prote
 
On already protected branches you can also allow developers to push to the repository by selecting the `Developers can push` check box.
 
![Developers can push](protected_branches/protected_branches2.png)
\ No newline at end of file
![Developers can push](protected_branches/protected_branches2.png)
## Automatically-protect new branches that match a regex pattern
Some workflows, like [GitLab workflow](gitlab_flow.md#release-branches-with-gitlab-flow),
requires that new branches (e.g. "release" branches) are created on a regular
basis. Most of the time, these branches are created by automated scripts.
Since these branches must be protected and follow a known pattern, they can be
automatically protected as soon as they are pushed to GitLab.
To enable the auto-protection of branches, navigate to the project settings pages,
and enter the regex pattern that branches should match in the `Auto-protected
branch pattern` text field. You can also allow everyone with write access to push
to a new auto-protected branch by selecting the `Developers can push to
auto-protected branches` check box.
![Auto-protected branches](protected_branches/protected_branches3.png)
doc/workflow/protected_branches/protected_branches1.png

166 KiB | W: 2852px | H: 1300px

doc/workflow/protected_branches/protected_branches1.png

142 KiB | W: 3326px | H: 1103px

doc/workflow/protected_branches/protected_branches1.png
doc/workflow/protected_branches/protected_branches1.png
doc/workflow/protected_branches/protected_branches1.png
doc/workflow/protected_branches/protected_branches1.png
  • 2-up
  • Swipe
  • Onion skin
doc/workflow/protected_branches/protected_branches2.png

25.2 KiB | W: 2338px | H: 290px

doc/workflow/protected_branches/protected_branches2.png

18.4 KiB | W: 1864px | H: 264px

doc/workflow/protected_branches/protected_branches2.png
doc/workflow/protected_branches/protected_branches2.png
doc/workflow/protected_branches/protected_branches2.png
doc/workflow/protected_branches/protected_branches2.png
  • 2-up
  • Swipe
  • Onion skin
doc/workflow/protected_branches/protected_branches3.png

41.8 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment