Skip to content

docs: correct the PR issue-linking mechanism - #254

Merged
jbadeau merged 1 commit into
mainfrom
docs/pr-link-mechanism
Jul 28, 2026
Merged

docs: correct the PR issue-linking mechanism#254
jbadeau merged 1 commit into
mainfrom
docs/pr-link-mechanism

Conversation

@joaodinissf

@joaodinissf joaodinissf commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

CLAUDE.md documents branch naming but says nothing about PR titles or issue linking, so the GH-<issue> convention exists only as practice.

The merged #253 stated the mechanism backwards — it said the title cross-references the issue. It does not: titles are never scanned, and a bare #168 in a title fails the same way.

What does resolve is GH-<issue> in a commit message — a built-in GitHub reference form needing no autolink configuration. Commit 31bc9c2e carries only GH-168 and GH-248, no bare #N, and both issues received referenced events from it. Since this repo is rebase-merge only, the PR body never enters history, which makes the commit subject the one reference that survives the merge — and the reason the title prefix is worth keeping.

Also records that GitHub parses closing keywords anywhere in a body, and that keywords in a title never close.

Relates to #253

This pull request was published with assistance from Claude.

The title GH-<issue> prefix resolves to nothing — no autolink is configured,
so only a body reference links a PR to its issue. #247 demonstrates it: a
GH-168 title, no body mention, and absent from #168's timeline.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jbadeau
jbadeau merged commit c53d1b4 into main Jul 28, 2026
1 check passed
@jbadeau
jbadeau deleted the docs/pr-link-mechanism branch July 28, 2026 21:58
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