diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 00:10:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 00:10:16 +0300 |
commit | 039b920db38c464de624710acec581be5a0eb961 (patch) | |
tree | 77eb43daaa9b25b6f8673433faf2e809992474a6 /doc/push_rules/push_rules.md | |
parent | 042cd704b8177e7997af4a2ca90967d3178ccc3f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/push_rules/push_rules.md')
-rw-r--r-- | doc/push_rules/push_rules.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/push_rules/push_rules.md b/doc/push_rules/push_rules.md index 2117a961957..db190797d0a 100644 --- a/doc/push_rules/push_rules.md +++ b/doc/push_rules/push_rules.md @@ -59,6 +59,13 @@ If you have other target branches, include them in your regex. (See [Enabling pu The default branch also defaults to being a [protected branch](../user/project/protected_branches.md), which already limits users from pushing directly. +Some example regular expressions you can use in push rules: + +- `^JIRA-` Branches must start with `JIRA-`. +- `-JIRA$` Branches must end with `-JIRA`. +- `^[a-z0-9\\-]{4,15}$` Branches must be between `4` and `15` characters long, + accepting only lowercase letters, numbers and dashes. + #### Default restricted branch names > Introduced in GitLab 12.10. |