diff options
author | Max Wittig <max.wittig95@gmail.com> | 2020-03-08 12:17:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 12:17:07 +0100 |
commit | 481bd4f70e89b4fffb35a009e5532a2cec89607a (patch) | |
tree | 62e6d27879f9398044ba898cd11eb44805bbcc2f /gitlab/v4/objects.py | |
parent | 47cb58c24af48c77c372210f9e791edd2c2c98b0 (diff) | |
parent | adc91011e46dfce909b7798b1257819ec09d01bd (diff) | |
download | gitlab-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.py | 3 |
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): |