Skip to content

Commit

Permalink
Check only open bugs, even after the first page.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyasskin committed Oct 27, 2023
1 parent bc40e1f commit c750407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scanner/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async function getRepo(org, repo): Promise<any> {
console.log(`Paging through issues on ${org}/${repo}.`);
const query = gql(`query ($owner: String!, $repoName: String!, $cursor: String, $pageSize: Int!) {
repository(owner: $owner, name: $repoName) {
issues(first: $pageSize, after: $cursor) {
issues(first: $pageSize, states: [OPEN], after: $cursor) {
...issueFragment
}
}
Expand Down Expand Up @@ -309,7 +309,7 @@ async function getRepo(org, repo): Promise<any> {
const remainingPRs = await octokit.graphql.paginate(
gql(`query ($owner: String!, $repoName: String!, $cursor: String) {
repository(owner: $owner, name: $repoName) {
pullRequests(first: 50, after: $cursor) {
pullRequests(first: 50, states: [OPEN], after: $cursor) {
...prFragment
}
}
Expand Down

0 comments on commit c750407

Please sign in to comment.