Merge branch 'mr-app-doc' into 'master'
new documentation on merge request approvals See merge request !448
@@ -1,6 +1,5 @@
|
||||
# Workflow
|
||||
|
||||
- [Approval for merge requests](approval_for_merge_requests.md)
|
||||
- [Authorization for merge requests](authorization_for_merge_requests.md)
|
||||
- [Change your time zone](timezone.md)
|
||||
- [Feature branch workflow](workflow.md)
|
||||
@@ -10,6 +9,7 @@
|
||||
- [Keyboard shortcuts](shortcuts.md)
|
||||
- [Labels](labels.md)
|
||||
- [Manage large binaries with git annex](git_annex.md)
|
||||
- [Merge Request Approvals](merge_request_approvals.md)
|
||||
- [Notifications](notifications.md)
|
||||
- [Project Features](project_features.md)
|
||||
- [Project forking workflow](forking_workflow.md)
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# Approval for merge requests
|
||||
|
||||
Usually you accept merge request if it is ready and reviewed. But in certain
|
||||
cases you want to be sure that every merge request will be reviewed by several
|
||||
people before it gets merged. You can use GitLab approve feature for enforcing such
|
||||
workflow. To enable it you should go to project settings page and set
|
||||
"Approvals required" field to numeric value. For example if you set it to number 3
|
||||
that means each merge request should receive 3 approves from different people
|
||||
before it can be merged via user interface.
|
||||
|
||||
|
||||

|
||||
|
||||
After you set approves value you can see on merge request page "Approve" button
|
||||
instead of "Accept" one. As soon as merge request get enough approvals it will
|
||||
be available for merge with user interface.
|
||||
|
||||

|
||||
|
Before Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 144 KiB |
@@ -0,0 +1,66 @@
|
||||
# Merge Request Approvals
|
||||
|
||||
If you want to make sure every merge request is approved by one or more
|
||||
people, you can enforce this workflow by using merge request approvals.
|
||||
Merge request approvals allow you to set the number of necessary approvals
|
||||
and predefine a list of approvers that will need to approve every
|
||||
merge request in a project.
|
||||
|
||||

|
||||
|
||||
## Configuring Approvals
|
||||
|
||||
You can configure the approvals in the project settings, under merge requests.
|
||||
|
||||

|
||||
|
||||
To enable it, set **Approvals required** to 1 or higher.
|
||||
|
||||
### Approvals Required
|
||||
|
||||
This sets the amount of approvals required before being able to merge a merge request.
|
||||
At 0, this disables the feature. Any value above requires that amount of different
|
||||
users to approve the merge request.
|
||||
|
||||
### Reset approvals on push
|
||||
|
||||
With this setting turned on, approvals are reset when a new push
|
||||
is done to the merge request branch.
|
||||
|
||||
Turn "Reset approvals on push" off if you want approvals to persist,
|
||||
independent of changes to the merge request.
|
||||
|
||||
### Approvers
|
||||
|
||||
At approvers you can define the default set of users that need to approve a
|
||||
merge request.
|
||||
|
||||
If there are more approvers than required approvals, any subset of these users
|
||||
can approve the merge request.
|
||||
|
||||
If there are less approvers than required approvals, all the set approvers plus
|
||||
any other user(s) need to approve the merge request before being able to merge it.
|
||||
|
||||

|
||||
|
||||
If the approvers are equal to the amount of required approvals, all the approvers are
|
||||
required to approve merge requests.
|
||||
|
||||

|
||||
|
||||
Note that approvers can be changed during merge request creation.
|
||||
|
||||
## Using Approvals
|
||||
|
||||
After configuring Approvals, you will see the following during merge request creation.
|
||||
|
||||

|
||||
|
||||
You can change the default set of approvers before creating the merge request.
|
||||
You can't change the amount of required approvals. This ensures that you're
|
||||
not forced to adjust settings when someone is unavailable for approval, yet
|
||||
the process is still enforced.
|
||||
|
||||
To approve a merge request, simply press the button.
|
||||
|
||||

|
||||
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 57 KiB |