Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
070d54b1
Commit
070d54b1
authored
Aug 06, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
877d351a
921611d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
doc/api/merge_request_approvals.md
doc/api/merge_request_approvals.md
+10
-8
No files found.
doc/api/merge_request_approvals.md
View file @
070d54b1
...
...
@@ -72,13 +72,14 @@ POST /projects/:id/approvals
**Parameters:**
| Attribute | Type | Required | Description |
| ------------------------------------------------ | ------- | -------- | ---------------------------------------------------------- |
|
`id`
| integer | yes | The ID of a project |
|
`approvals_before_merge`
| integer | no | How many approvals are required before an MR can be merged |
|
`reset_approvals_on_push`
| boolean | no | Reset approvals on a new push |
|
`disable_overriding_approvers_per_merge_request`
| boolean | no | Allow/Disallow overriding approvers per MR |
|
`merge_requests_author_approval`
| boolean | no | Allow/Disallow authors be able to self approve merge requests |
| Attribute | Type | Required | Description |
| ------------------------------------------------ | ------- | -------- | --------------------------------------------------------------------------------------------------- |
|
`id`
| integer | yes | The ID of a project |
|
`approvals_before_merge`
| integer | no | How many approvals are required before an MR can be merged |
|
`reset_approvals_on_push`
| boolean | no | Reset approvals on a new push |
|
`disable_overriding_approvers_per_merge_request`
| boolean | no | Allow/Disallow overriding approvers per MR |
|
`merge_requests_author_approval`
| boolean | no | Allow/Disallow authors from self approving merge requests;
`true`
means authors cannot self approve |
|
`merge_requests_disable_committers_approval`
| boolean | no | Allow/Disallow committers from self approving merge requests |
```
json
{
...
...
@@ -115,7 +116,8 @@ POST /projects/:id/approvals
"approvals_before_merge"
:
2
,
"reset_approvals_on_push"
:
true
,
"disable_overriding_approvers_per_merge_request"
:
false
,
"merge_requests_author_approval"
:
false
"merge_requests_author_approval"
:
false
,
"merge_requests_disable_committers_approval"
:
false
}
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment