Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3618a7c

Browse files
fix: handle large number of approval rules
Use `iterator=True` when going through the list of current approvalrules. This allows it to handle more than the default of 20 approvalrules.Closes:#2825
1 parent12d195a commit3618a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitlab/v4/objects/merge_request_approvals.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def set_approvers(
122122
self._parent.approval_rules
123123
)
124124
# update any existing approval rule matching the name
125-
existing_approval_rules=approval_rules.list()
125+
existing_approval_rules=approval_rules.list(iterator=True)
126126
forarinexisting_approval_rules:
127127
ifar.name==approval_rule_name:
128128
ar.user_ids=data["user_ids"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp