Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,31 @@ const pkg = require('./package.json')
state: 'open',
labels: agendaLabel
})

console.log(`Fetching issues for ${r.owner}/${r.repo}: Found ${_agendaIssues.length}`)
for (const i of _agendaIssues) {
console.log(`Adding Issue: ${i.url}`)
if (!agendaIssues.find((ii) => ii.url === i.url)) {
agendaIssues.push(i)
}
}

const _agendaPr = await client.paginate('GET /repos/{owner}/{repo}/pulls', {
owner: r.owner,
repo: r.repo,
state: 'open',
labels: agendaLabel
})
Comment on lines +119 to +120
Copy link
Contributor

@ctcpip ctcpip Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
labels: agendaLabel
})
labels: agendaLabel,
per_page: 100
})

the default page size is 30, which is probably plenty, but we should set it to the max (100). and also on the fetch for issues


for (const pr of _agendaPr) {
if (pr.labels.some(label => label.name === agendaLabel)) {
console.log(`Fetching PRs for ${r.owner}/${r.repo}: Found ${_agendaPr.length}`)
if (!agendaIssues.find((ii) => ii.url === pr.url)) {
console.log(`Adding PR: ${pr.url}`)
agendaIssues.push(pr)
}
}
}
}
console.log(`Found ${agendaIssues.length} total issues for agenda`)

Expand Down
Loading