Description
The way isFirstIssue() works today makes it sometimes improperly flag an issue as "new" if the only types of issues/PRs found in the list returned by "listForRepo" is PRs
const {status, data: issues} = await client.rest.issues.listForRepo({
owner: owner,
repo: repo,
creator: sender,
state: 'all'
});
// ...
for (const issue of issues) {
if (issue.number < curIssueNumber && !issue.pull_request) {
return false;
}
}
Metadata
Metadata
Assignees
Labels
No labels