Skip to content

Show the issue URL when closing a merged issue fails - #750

Merged
JacobStephens2 merged 1 commit into
mainfrom
issue-193
Oct 17, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
issue-193

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Include the Issue URL when closing an issue after a confirmed Self-merge fails. Keep the manual close command and the successful merge outcome.

- could not close issue #7, so if it is still open, close it by hand: gh issue close ...
+ could not close issue #7 (https://github.com/acme/widgets/issues/7), so if it is still open, close it by hand: gh issue close ...

Closes #193

Evidence

  • Before: cargo test --test merge_run an_issue_close_failure_links_the_issue_and_keeps_the_manual_close_command -- --exact failed: the warning omitted the URL.
    After: the same test passes, checking the warning's exact URL, issue number, repository, close command, and explanatory comment. The confirmed merge remains successful and local cleanup completes.
  • An already closed issue produces neither a close attempt nor a close-failure warning; its regression test passes.
  • Test seam: thirdshift merge <Issue URL> through the CLI, using real Git and the existing fake GitHub and Harness executables.
  • Validation: cargo check, cargo fmt --check, cargo clippy --all-targets -- -D warnings, and all 28 tests in cargo test --test merge_run pass.
  • The full cargo test suite passes: 1,805 passed, 0 failed, 2 ignored.

Review

Independent Standards and Spec reviews used main (ecbba89) as the fixed point. Both found no findings and read both changed files: src/delivery.rs and tests/merge_run.rs.

Changed files left unread: none on either axis.

Unaddressed findings

  • Standards: None.
  • Spec: None.
  • Security: None. Guidance review against pinned merge base ecbba89caf107a5e99e95c498e18a29105c6bf4d covered both changed files and the supporting Issue URL parsing, Origin match, GitHub close operation, and warning/log output. No introduced Security findings were identified.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Revert the warning text change to roll back.

Blast Radius: warnings

Only the issue-close failure warning after a confirmed Self-merge changes.

Built with codex · gpt-6.1-sol · high

@JacobStephens2
JacobStephens2 merged commit b05ada2 into main Oct 17, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-193 branch October 17, 2026 08:26
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 17, 2026
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.

show link to issue in cannot close issue warning case

1 participant