Skip to content

fix(ci): stop counting merged PRs as open in issue-status - #134

Merged
bencap merged 1 commit into
mavedb-mainfrom
bugfix/bencap/issue-status-merged-prs
Nov 25, 2026
Merged

bencap merged 1 commit into
mavedb-mainfrom
bugfix/bencap/issue-status-merged-prs

Conversation

@bencap

@bencap bencap commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

stillOpenElsewhere in the issue-status script treated every PR in an issue's closedByPullRequestsReferences as open, except release-branch heads. includeClosedPrs: false only 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 into release-* or mavedb-dev, and was left out of the release PR's generated "Closes" list. Issues named only on a Closes #N line 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 only OPEN PRs 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 --check on the script; prettier check passes (ui).
  • Loaded stillOpenElsewhere against stub issues: a lone MERGED PR no longer holds the issue back, an OPEN release-branch PR still doesn't count, and another OPEN PR still does.
  • Confirmed with gh api graphql that state returns MERGED for these PRs under includeClosedPrs: false.

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.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 0.0%. remained the same — bugfix/bencap/issue-status-merged-prs into mavedb-main

@bencap
bencap merged commit f22bf53 into mavedb-main Nov 25, 2026
3 checks passed
@bencap
bencap deleted the bugfix/bencap/issue-status-merged-prs branch November 25, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants