Skip to content

gstack-issue-links skips /ship's Review-Finding trailers (#4371) - #4389

Closed
Davmunrey wants to merge 1 commit into
garrytan:mainfrom
Davmunrey:fix/issue-links-review-finding
Closed

Davmunrey wants to merge 1 commit into
garrytan:mainfrom
Davmunrey:fix/issue-links-review-finding

Conversation

@Davmunrey

Copy link
Copy Markdown
Contributor

Why (in your own words)

/ship commits each review fix with one Review-Finding: <ledger id> reader=<raised_by> trailer. A ledger id such as p1/red-team#3 matches the cross-repo owner/repo#N pattern, so gstack-issue-links printed Refs p1/red-team#3 for each one. /ship pastes those lines under ## Issues in the PR body, where they claim issues in repositories that do not exist. mentionsIn now skips Review-Finding: trailer lines, and the rest of the commit message is read as before (fixes #4371).

Live evidence

$ git log -1 --format=%B
fix: pre-landing review fixes

Review-Finding: p1/red-team#3 reader=red-team
Review-Finding: p2/adversarial-native#3 reader=codex

# before (main 0326b14)
$ bun bin/gstack-issue-links --base main --no-auto-links
Refs p1/red-team#3
Refs p2/adversarial-native#3
  reference p1/red-team#3 ← commit e135c6ffb64e: Review-Finding: p1/red-team#3 reader=red-team
  reference p2/adversarial-native#3 ← commit e135c6ffb64e: Review-Finding: p2/adversarial-native#3 reader=codex

# after (this branch)
$ bun bin/gstack-issue-links --base main --no-auto-links
ISSUE_LINKS: none

$ bun test test/ship-issue-intent.test.ts test/gstack-ship-receipt.test.ts
 15 pass, 0 fail / 18 pass, 0 fail   # the new trailer case fails on main with both ledger ids
$ bun run typecheck && bun run typecheck:test
test typecheck ratchet: 812 known diagnostics, none new.
$ bin/gstack-prose-lint changelog.d/fix-issue-links-review-finding.md --gate
PROSE_LINT: ok files=1

Scope

  • Changed: lib/issue-links.ts (one pattern and one continue), a pure test in test/ship-issue-intent.test.ts that keeps a real cross-repo reference and a bare #N beside the trailers, and a changelog fragment.
  • Verified live by: Running gstack-issue-links on a throwaway repo whose commit carries two Review-Finding trailers, before and after (output above), plus the issue-links and ship-receipt test files.
  • Did NOT test: A full /ship run. Trailers named anything other than Review-Finding are still read as before. I did not run the full free suite.

Liveness proof (required for external contributors)

Checklist

/ship commits review fixes with one `Review-Finding: <ledger id>
reader=<raised_by>` trailer per finding. A ledger id such as
p1/red-team#3 fits the cross-repo owner/repo#N pattern, so each one
became a `Refs p1/red-team#3` line that /ship pastes under `## Issues`
in the PR body. mentionsIn now skips Review-Finding trailer lines; the
rest of the message is read as before.

A pure test feeds two Review-Finding trailers beside a real cross-repo
reference and a bare #N; on main it also returns both ledger ids.
@trunk-io

trunk-io Bot commented Nov 15, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Thank you, this is a clean fix with a good test that keeps a real cross-repo reference beside the trailers. Outside code is rebuilt by a maintainer agent on current main rather than merged directly, so we'll rebuild this change with you credited as co-author and close this PR with a link once it lands. It's queued behind other finished work, so it may take a few days.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you. Your fix for #4371 is being picked up in a bug-fix batch that a maintainer agent is working on now (our tracking thread GSTA-796). It will be rebuilt on current main with you credited as co-author, and we'll close this PR with a link when it lands.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you for this, @Davmunrey. Your diagnosis of #4371 was right: Review-Finding: lines shouldn't count as issue references. We've taken the same fix in #4672, rewritten on current main together with a few other small fixes to the same tools, so I'm closing this one as superseded. Thanks again for the clear report and patch.

@capy-ai capy-ai Bot closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working S3 Severity 3: everything else

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gstack-issue-links prints /ship's Review-Finding ledger ids (p1/red-team#3) as cross-repo issue references (Refs p1/red-team#3)

1 participant