Skip to content

Improve get PRs details performance #1444

@matmarchand

Description

@matmarchand

Azure DevOps Extensions

Generate Release Notes (Node Cross Platform)

Is your feature request related to a problem? Please describe.

Generating release notes is really slow in our case because "Getting associated PRs" will fetch about 100 000 PRs.

Describe the solution you'd like

According to this comment from MSFT, the pull request list API will sort completed PRs by completion date.

With that in mind, in getPullRequest we could stop the PR iteration when we reached the oldest build/release date that we are comparing against.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions