Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid paginating over all pull requests #165

Closed
@kyeah

Description

@kyeah

getClosedIssues uses since to grab only the needed issues:

const { data: issues } = await this.issues.listIssues({
  state: 'closed',
  since: releaseRanges[releaseRanges.length - 1][1].date
});

getMergedPullRequests should do the same instead of paginating over all pull requests in the repo, which can take a while for large projects. If there's no since param, maybe there's a way to sort by merge time, or we could could potentially use listIssues as an initial list of all the PR issues that have been updated since the date, and then short-circuit out of getMergedPullRequests once it's seen all of them? 🤷‍

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions