Skip to content

Commit e6fb635

Browse files
robinson96JohnVillalovos
authored andcommitted
fix: Fix 404 not found error for saving approval rules by setting correct _id_attr
1 parent 48726fd commit e6fb635

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab/v4/objects/merge_request_approvals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def set_approvers(
132132

133133
class ProjectMergeRequestApprovalRule(SaveMixin, ObjectDeleteMixin, RESTObject):
134134
_repr_attr = "name"
135+
_id_attr = "approval_rule_id"
135136
id: int
136137
approval_rule_id: int
137138
merge_request_iid: int

0 commit comments

Comments
 (0)