Skip to content
代码片段 群组 项目
提交 3aa15bb8 编辑于 作者: Marcel Amirault's avatar Marcel Amirault
浏览文件

Merge branch '333836-aqualls-all-branches' into 'master'

Fixes statements about "all branches"

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/107700



Merged-by: default avatarMarcel Amirault <mamirault@gitlab.com>
Approved-by: default avatarMarcel Amirault <mamirault@gitlab.com>
Co-authored-by: default avatarAmy Qualls <aqualls@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -36,6 +36,10 @@ To add a merge request approval rule: ...@@ -36,6 +36,10 @@ To add a merge request approval rule:
1. In the **Merge request approvals** section, scroll to **Approval rules**. 1. In the **Merge request approvals** section, scroll to **Approval rules**.
1. Select **Add approval rule**. 1. Select **Add approval rule**.
1. Add a human-readable **Rule name**. 1. Add a human-readable **Rule name**.
1. Select a **Target branch**:
- To apply the rule to all branches, select **All branches**.
- To apply the rule to all protected branches, select **All protected branches** (GitLab 15.3 and later).
- To apply the rule to a specific branch, select it from the list.
1. Set the number of required approvals in **Approvals required**. A value of `0` makes 1. Set the number of required approvals in **Approvals required**. A value of `0` makes
[the rule optional](#configure-optional-approval-rules), and any number greater than `0` [the rule optional](#configure-optional-approval-rules), and any number greater than `0`
creates a required rule. creates a required rule.
...@@ -221,8 +225,7 @@ appreciated, but not required. To make an approval rule optional: ...@@ -221,8 +225,7 @@ appreciated, but not required. To make an approval rule optional:
## Approvals for protected branches ## Approvals for protected branches
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/460) in GitLab 12.8. > **All protected branches** target branch option [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/360930) in GitLab 15.3.
> - **All protected branches** target branch option [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/360930) in GitLab 15.3.
Approval rules are often relevant only to specific branches, like your Approval rules are often relevant only to specific branches, like your
[default branch](../../repository/branches/default.md). To configure an [default branch](../../repository/branches/default.md). To configure an
...@@ -231,8 +234,7 @@ approval rule for certain branches: ...@@ -231,8 +234,7 @@ approval rule for certain branches:
1. [Create an approval rule](#add-an-approval-rule). 1. [Create an approval rule](#add-an-approval-rule).
1. Go to your project and select **Settings > Merge requests**. 1. Go to your project and select **Settings > Merge requests**.
1. In the **Merge request approvals** section, scroll to **Approval rules**. 1. In the **Merge request approvals** section, scroll to **Approval rules**.
1. Select a **Target branch**: 1. For **Target branch**:
- To apply the rule to all branches, select **All branches**.
- To apply the rule to all protected branches, select **All protected branches** (GitLab 15.3 and later). - To apply the rule to all protected branches, select **All protected branches** (GitLab 15.3 and later).
- To apply the rule to a specific branch, select it from the list. - To apply the rule to a specific branch, select it from the list.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册