We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a72a10 commit 3919e2bCopy full SHA for 3919e2b
src/rooster/_github.py
@@ -145,6 +145,8 @@ def get_pull_requests_for_commits(
145
seen_commits = 0
146
expected_commits = {str(commit.id) for commit in commits}
147
148
+ # Note we use `first: 10` on `history` because GitHub can otherwise
149
+ # encounter an internal timeout and return a 502
150
query = textwrap.dedent(
151
"""
152
query associatedPullRequest(
@@ -154,7 +156,7 @@ def get_pull_requests_for_commits(
154
156
commit: object(expression: $commit) {
155
157
... on Commit {
158
id
- history(after: $after) {
159
+ history(first: 10, after: $after) {
160
nodes {
161
oid
162
associatedPullRequests(first: 1) {
0 commit comments