summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2020-03-08 12:17:07 +0100
committerGitHub <noreply@github.com>2020-03-08 12:17:07 +0100
commit481bd4f70e89b4fffb35a009e5532a2cec89607a (patch)
tree62e6d27879f9398044ba898cd11eb44805bbcc2f /gitlab/v4/objects.py
parent47cb58c24af48c77c372210f9e791edd2c2c98b0 (diff)
parentadc91011e46dfce909b7798b1257819ec09d01bd (diff)
downloadgitlab-481bd4f70e89b4fffb35a009e5532a2cec89607a.tar.gz
Merge pull request #1039 from python-gitlab/fix/set-approversv2.1.0
Fix/set approvers
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index a349aff..13fbb53 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2762,12 +2762,13 @@ class ProjectMergeRequestApprovalManager(GetWithoutIdMixin, UpdateMixin, RESTMan
self._parent.get_id(),
)
data = {
+ "name": "name",
"approvals_required": approvals_required,
"rule_type": "regular",
"user_ids": approver_ids,
"group_ids": approver_group_ids,
}
- self.gitlab.http_put(path, post_data=data, **kwargs)
+ self.gitlab.http_post(path, post_data=data, **kwargs)
class ProjectMergeRequestAwardEmoji(ObjectDeleteMixin, RESTObject):