Repository navigation
fix(ci): stop counting merged PRs as open in issue-status - #134
Merged
Merged
Conversation
closedByPullRequestsReferences(includeClosedPrs: false) drops only PRs closed without merging. A PR merged into a release branch stays in the list because GitHub never closes its issues, so stillOpenElsewhere counted it as open. Issues linked from a PR's Development sidebar were then never moved to Pending release when that PR merged, and were left out of the release PR's "Closes" list (dcd_mapping2#131 and #125 in Release 2026.3.4, mavedb-api#721 in Release 2026.3.3). Issues named on a "Closes #N" line were unaffected. The query now fetches each PR's state and only OPEN PRs count.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stillOpenElsewherein the issue-status script treated every PR in an issue'sclosedByPullRequestsReferencesas open, except release-branch heads.includeClosedPrs: falseonly drops PRs closed without merging; a PR merged into a release branch stays in the list because GitHub never closes its issues. So an issue linked from a PR's Development sidebar was never moved to Pending release when that PR merged intorelease-*ormavedb-dev, and was left out of the release PR's generated "Closes" list. Issues named only on aCloses #Nline weren't affected.Seen in #131 and #125 (sidebar-linked from merged dcd_mapping2#132, logged as "still linked from open #132", missing from Release 2026.3.4), and VariantEffect/mavedb-api#721 (sidebar-linked from merged mavedb-api#957, missing from Release 2026.3.3's list).
The query now fetches each linked PR's
state, and onlyOPENPRs count. The same fix goes to mavedb-api, mavedb-ui and dcd_mapping2, whose copies stay identical in logic.This targets the default branch directly rather than a release branch: the workflow runs on
pull_request_target, so the release PR's "Closes" list is built by the default branch's copy. After this merges, the release branches are synced to it.Tests
node --checkon the script; prettier check passes (ui).stillOpenElsewhereagainst stub issues: a loneMERGEDPR no longer holds the issue back, anOPENrelease-branch PR still doesn't count, and anotherOPENPR still does.gh api graphqlthatstatereturnsMERGEDfor these PRs underincludeClosedPrs: false.