Repository navigation
Close the issue after a Self-merge unless it is already closed - #186
Merged
Merged
Conversation
GitHub may not close a PR's linked issue on merge, and gh 2.45 has no closingIssuesReferences field, so thirdshift no longer predicts whether the merge closes the issue. The fake gh no longer closes issues on merge and rejects unknown --json fields as gh does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
Merged
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
After a Self-merge, thirdshift no longer tries to predict whether GitHub will close the issue. It closes the issue itself unless the issue is already closed.
github::merge_closes_issueis removed. ItsclosingIssuesReferencesfield doesn't exist in gh 2.45.gh,pr mergeno longer closes the issues a PR body names, since GitHub may not close them either.--jsonnow rejects unknown fields with gh'sUnknown JSON fielderror, onpr view(with and without--jq),pr listandissue view. The fake'srepo viewis gone because nothing calls it any more.CONTEXT.mdnow says: "the issue closed by thirdshift, unless it is already closed."Evidence
main's code:cargo testpasses every suite, andcargo clippy --all-targetsandcargo fmt --checkare clean. New or changed tests intests/merge_run.rs:gh issue close(exit 0 plus the "could not close issue Numbered Issue branches after a merged or closed PR #7…" warning) pass unchanged.Merge Danger
Door: two-way
A revert brings back the old behaviour. The only lasting effect is a duplicate close comment, in the accepted race where GitHub closes the issue at the moment thirdshift checks.
Blast Radius: small
It only affects the post-merge close step of a Merge run, which never fails the Run. Issues that GitHub closes may occasionally get an extra thirdshift comment as well.
Unaddressed findings
Standards
closingIssuesReferencestest duplicates the fake's rejection. Kept on purpose: the spec asks that "a test fails if one does", and a named test says why better than a warning buried in stderr.mainis written inline instead of through a helper. It's a single use, moved from a deleted test, so a helper isn't worth it.ghversion.Spec
None unaddressed. The fake's partial rejection of unknown fields was fixed across
pr view --jq,pr listandissue view.Closes #181
🤖 Generated with Claude Code