Skip to content

Commit 35f1f61

Browse files
fix(cli): project-merge-request-approval-rule
Using the CLI the command: gitlab project-merge-request-approval-rule list --mr-iid 1 --project-id foo/bar Would raise an exception. This was due to the fact that `_id_attr` and `_repr_attr` were set for keys which are not returned in the response. This is an EE feature so we can't functional test it. Closes: #2065
1 parent ae7d3b0 commit 35f1f61

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gitlab/v4/objects/merge_request_approvals.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ def set_approvers(
165165

166166

167167
class ProjectMergeRequestApprovalRule(SaveMixin, ObjectDeleteMixin, RESTObject):
168-
_id_attr = "approval_rule_id"
169-
_repr_attr = "approval_rule"
170168
id: int
171169
approval_rule_id: int
172170
merge_request_iid: int

0 commit comments

Comments
 (0)