Repository navigation
[AI-2214] Add authoring rules for comments, commits and PR descriptions - #659
Conversation
PR Summary by QodoAdd authoring rules for comments, commits, and PR descriptions
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Ported from kcap-server; the title rule puts [AI-123] in the PR title, which the reference bullet had forbidden. That bullet now governs the description's Linear and GitHub references only, matching what merged PRs already do. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…itle prefix The template's placeholder is deliberately not a valid issue link: `#<issue>` closes nothing when a PR ships unedited, where a specimen `#123` would close an unrelated issue. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
e0652b9 to
5042af8
Compare
The PR title omits the reference: squash-merge appends the PR number to it, and a second `(#n)` beside that one reads as another PR. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Closes #658 — AI-2214
What & why
kcap-server settled how comments, commit messages and PR descriptions are written. Here there was one line on comments and nothing on the other two, so agents copy what the tree shows — 1,705 comment lines carrying
§2.7 B6,Round 2 Finding 2orIt used to be. The rules land verbatim: a Comments section (two-part test, Never list, three exceptions), a Commit messages section, and a PR template owning length, headings and its own Never list. Same wording in both repos, so an agent moving between them writes the same way in each.Where to look
Three deltas, each forced by this repo:
one clause (#123)), and the PR title carries none at all — squash-merge appends the PR number, so a second(#n)beside it reads as another PR.Closes #<issue> — AI-<id>, deliberately not a live reference: a specimen number would close an unrelated issue whenever the template shipped unedited.### Area-specific pitfallsis not ported: it only introduceddocs/gotchas/, absent here.Verification
Ported sections diffed against the server's text: identical but for the CLAUDE.md deltas above; the template differs only by the reference line. Docs-only — no build.