You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(roadmap): scope pull request queries for reprioritization to avoid full repository PR enumeration #1246
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
In PR #1245, _OPEN_PULL_REQUESTS_QUERY was changed to query states: [OPEN, MERGED]. Because it queries repository-wide without pagination, totalCount (536) exceeds the single-page limit of 100. This triggers _require_whole, causing devops roadmap reprioritize to fail with:
✗ Could not plan reprioritization: Read 100 of 536 open pull requests, so the read is incomplete.
Additionally, GitHub GraphQL orders by CREATED_AT ascending by default, so only the 100 oldest historical PRs from repository creation are retrieved, missing all recent merged PRs for active releases.
Proposed Solution
Restore _OPEN_PULL_REQUESTS_QUERY to query states: [OPEN] (open PRs across the repo are small in number and fit in a single page).
For merged PRs in active releases, query PRs targeting the release branch (pullRequests(baseRefName: $branch, first: 100)), which reliably retrieves all in-flight and merged PRs for the release without scanning historical PRs.
Update reprioritize.py to inspect both open PRs and the release branch's PRs when linking PRs to issues.
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
Activity
fix(roadmap): scope pull request queries for reprioritization to avoi…
feat(release): v0.2.27 (#1257)