Skip to content

Commit

Permalink
fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ephys committed Apr 9, 2024
1 parent 950f2ba commit 5cce30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fragment PR on PullRequest {
}
}
}
`,{...e,cursor:A});for(let r of t.search.nodes)yield r;if(t.search.pageInfo.hasNextPage)break;A=t.search.pageInfo.endCursor}}function Kb(e){return e.__typename==="Bot"?`app/${e.login}`:e.login}function zb(e,A){switch(A){case"all":return!0;case"draft":return e.isDraft;case"ready_for_review":return!e.isDraft}}function $b(e){return!(!zb(e,oW)||Yb.length>0&&!gi(e,Yb)||Jb.length>0&&gi(e,Jb)||nW.includes(Kb(e.author)))}
`,{...e,cursor:A});for(let r of t.search.nodes)yield r;if(!t.search.pageInfo.hasNextPage)break;A=t.search.pageInfo.endCursor}}function Kb(e){return e.__typename==="Bot"?`app/${e.login}`:e.login}function zb(e,A){switch(A){case"all":return!0;case"draft":return e.isDraft;case"ready_for_review":return!e.isDraft}}function $b(e){return!(!zb(e,oW)||Yb.length>0&&!gi(e,Yb)||Jb.length>0&&gi(e,Jb)||nW.includes(Kb(e.author)))}
/*! Bundled license information:

undici/lib/fetch/body.js:
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async function* iteratePullRequests(params: { search: string }) {
yield pullRequest;
}

if (response.search.pageInfo.hasNextPage) {
if (!response.search.pageInfo.hasNextPage) {
break;
}

Expand Down

0 comments on commit 5cce30e

Please sign in to comment.