Skip to content

Commit 4852c46

Browse files
authored
Fix automerge checks (#4308)
increase per_page for checks query in automerge
1 parent ada1b09 commit 4852c46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev_tools/auto_merge.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,9 @@ def get_pr_checks(pr: PullRequestDetails) -> Dict[str, Any]:
358358
References:
359359
https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref
360360
"""
361-
url = "https://api.github.com/repos/{}/{}/commits/{}/check-runs?access_token={}".format(
362-
pr.repo.organization, pr.repo.name, pr.branch_sha, pr.repo.access_token
361+
url = (
362+
f"https://api.github.com/repos/{pr.repo.organization}/{pr.repo.name}"
363+
f"/commits/{pr.branch_sha}/check-runs?per_page=100&access_token={pr.repo.access_token}"
363364
)
364365
response = requests.get(url, headers={'Accept': 'application/vnd.github.antiope-preview+json'})
365366

0 commit comments

Comments
 (0)