Skip to content

Commit 230a62a

Browse files
robinson96JohnVillalovos
authored andcommitted
fix: Fix 404 not found error for saving approval rules by setting correct _id_attr
1 parent 058d5a5 commit 230a62a

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
@@ -131,6 +131,7 @@ def set_approvers(
131131

132132
class ProjectMergeRequestApprovalRule(SaveMixin, ObjectDeleteMixin, RESTObject):
133133
_repr_attr = "name"
134+
_id_attr = "approval_rule_id"
134135
id: int
135136
approval_rule_id: int
136137
merge_request_iid: int

0 commit comments

Comments
 (0)