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
674c41fc
Commit
674c41fc
authored
Jan 29, 2020
by
Blair Lunceford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated api docs
parent
db345ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
doc/api/merge_request_approvals.md
doc/api/merge_request_approvals.md
+11
-3
No files found.
doc/api/merge_request_approvals.md
View file @
674c41fc
...
...
@@ -25,7 +25,10 @@ GET /projects/:id/approvals
{
"approvals_before_merge"
:
2
,
"reset_approvals_on_push"
:
true
,
"disable_overriding_approvers_per_merge_request"
:
false
"disable_overriding_approvers_per_merge_request"
:
false
,
"merge_requests_author_approval"
:
true
,
"merge_requests_disable_committers_approval"
:
false
,
"require_password_to_approve"
:
true
}
```
...
...
@@ -50,6 +53,7 @@ POST /projects/:id/approvals
|
`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 |
|
`require_password_to_approve`
| boolean | no | Require approver to enter a password in order to authenticate before adding the approval |
```
json
{
...
...
@@ -57,7 +61,8 @@ POST /projects/:id/approvals
"reset_approvals_on_push"
:
true
,
"disable_overriding_approvers_per_merge_request"
:
false
,
"merge_requests_author_approval"
:
false
,
"merge_requests_disable_committers_approval"
:
false
"merge_requests_disable_committers_approval"
:
false
,
"require_password_to_approve"
:
true
}
```
...
...
@@ -441,7 +446,10 @@ PUT /projects/:id/approvers
],
"approvals_before_merge"
:
2
,
"reset_approvals_on_push"
:
true
,
"disable_overriding_approvers_per_merge_request"
:
false
"disable_overriding_approvers_per_merge_request"
:
false
,
"merge_requests_author_approval"
:
true
,
"merge_requests_disable_committers_approval"
:
false
,
"require_password_to_approve"
:
true
}
```
...
...
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