Group MR approval settings
Feature Request to create the group-mr-approval-settings object on the Group class.
The ability exists over API to query this:
curl --header "PRIVATE-TOKEN: <your_access_token>" \
--url "https://gitlab.example.com/api/v4/groups/:id/merge_request_approval_setting"
{
"allow_author_approval": {
"value": true,
"locked": false,
"inherited_from": null
},
"allow_committer_approval": {
"value": true,
"locked": false,
"inherited_from": null
},
"allow_overrides_to_approver_list_per_merge_request": {
"value": true,
...
e.g.
>>> group = gl.groups.get('56')
>>> pb = group.merge_request_approval_setting.get()
>>> from pprint import pprint
>>> pprint(pb)
{
"allow_author_approval": {
"value": true,
"locked": false,
"inherited_from": null
},
"allow_committer_approval": {
"value": true,
"locked": false,
"inherited_from": null
},
"allow_overrides_to_approver_list_per_merge_request": {
"value": true,
"locked": false,
"inherited_from": null
},
"retain_approvals_on_push": {
"value": true,
"locked": false,
"inherited_from": null
...
ref: https://gitlab.com/gitlab-security-oss/cis/gitlabcis/-/issues/125
Specifications
- python-gitlab version:
5.6.0
- Gitlab server version (or gitlab.com):
GitLab Enterprise Edition 17.11.0-pre 76ac92593a5
Group MR approval settings
Feature Request to create the group-mr-approval-settings object on the Group class.
The ability exists over API to query this:
{ "allow_author_approval": { "value": true, "locked": false, "inherited_from": null }, "allow_committer_approval": { "value": true, "locked": false, "inherited_from": null }, "allow_overrides_to_approver_list_per_merge_request": { "value": true, ...e.g.
ref: https://gitlab.com/gitlab-security-oss/cis/gitlabcis/-/issues/125
Specifications
5.6.0GitLab Enterprise Edition 17.11.0-pre76ac92593a5