Improve get PRs details performance
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
Interesting idea, note sure when I might have time to experiment with this technique, but it is on the backlog
The fix #1588 has just been released, this provides some new option that could help PR discovery performance
Thanks! It solved a lot of production issues