Skip to content

Commit f7130a6

Browse files
author
Charles
committed
fix(objects): Added approval rule name to data
The new gitlab api needs a name for the approval rules, added a default one to maintain the python-gitlab api.
1 parent 8e0c526 commit f7130a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2707,12 +2707,13 @@ def set_approvers(
27072707
self._parent.get_id(),
27082708
)
27092709
data = {
2710+
"name":"name",
27102711
"approvals_required": approvals_required,
27112712
"rule_type": "regular",
27122713
"user_ids": approver_ids,
27132714
"group_ids": approver_group_ids,
27142715
}
2715-
self.gitlab.http_put(path, post_data=data, **kwargs)
2716+
self.gitlab.http_post(path, post_data=data, **kwargs)
27162717

27172718

27182719
class ProjectMergeRequestAwardEmoji(ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy