Repository navigation
Conversation
`pr_review.py status` now reads the live title against the mechanical part of the title contract in `comment-and-doc-style`: 72 characters or fewer, no trailing period, and title case with the exhaustive bind-word list. Dependabot's titles are exempt, and imperative mood stays with review. The check lives in the new `pr_review_title.py`, since `pr_review.py` sits at its line ceiling. The digest carries `title=`, a held title prints its fixes and `status=TITLE_NOT_CONVENTIONAL`, `status` and `wait` exit 50 where a Copilot round covers the head, and `merge` refuses it on any head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reader-import contract, the merge route table, and the size ceilings now name `pr_review_title.py` and its `TITLE_NOT_CONVENTIONAL` status line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A hyphenated word opening with a bind word, such as `On-Demand`, keeps its first part capitalized, as the contract states. A word glued to a code span, such as the `'s` after one, is part of the name rather than a word of its own. A Dependabot pull request no longer open prints no `title=` field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A capital label such as a DNS `A` record reads as a bind word, so the
lowering fix now names the code span too. The query test now checks the
pull request's own `title author{login}` rather than any author field, and
the scripts README loses a doubled blank line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
A recorded local strict-review pass covers head |
|
Parked on decision #4525, which asks how the title gate treats casing. This PR stays a draft until it is answered, and its options there say what each does to this branch. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4524 +/- ##
===========================================
- Coverage 81.60% 79.15% -2.46%
===========================================
Files 26 51 +25
Lines 9070 17018 +7948
===========================================
+ Hits 7402 13471 +6069
- Misses 1668 3547 +1879
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
pr_review.py statusnow reads the pull request's live title against the mechanical part of the title contract incomment-and-doc-style"PR titles and commit messages", per the maintainer's 2026-11-26 answer on #1631 (option 1). It checks three things:Dependabot's titles are exempt. Imperative mood, a vague title, and a release-bump magnitude stay with review.
scripts/pr_review_title.py(new) holds the check, sincepr_review.pysits at its line ceiling.pr_review.pygains onlytitle author{login}in the gate query and one docstring line, and is now at 2199 lines.title=ok|HELD|exempt. A held title prints aTITLE NOT CONVENTIONALblock naming each fix, and astatus=TITLE_NOT_CONVENTIONALline.statusandwaitreuse exit50where a Copilot round covers the head. Before one, the line prints and the exit is unchanged, so "statusexits 0 over a refusal" stays true.mergerefuses a held title on any head throughunmet, routing toredrive.tests/test_pr_review_title.py(new) reads the bind-word list and the example titles from the skill itself, so neither can drift. The gate's reader-import contract, route table, and size ceilings name the new module.Parked
This PR is a draft and is parked on a
decisionissue (linked in a comment below). The casing rule as built holds every plain lower-case word, such asdevelop,main, a skill name, or a tool name, unless it is capitalized or put in a code span. Nothing committed prescribes that code-span convention. Measured on the last 382 non-Dependabot titles in this repository, 241 would be held,Promote develop to mainamong them. The decision issue's options decide whether this PR narrows the casing check before it leaves draft.It also leaves
pr-review-conduct"Merge Gate" describing exit50only as the verdict headline and theshapes=HELDhold. Its item 2 promotion case names those two as the only reasons besidescoverage=nonethat the gate may not report a promotion ready, so a held promotion title now keeps that case from applying. That skill text is outside this change and is with the maintainer on the decision issue.Local review
4ab35bc7:On-Demand, now keeps its first part capitalized;'safter one, is skipped;"title" not in prbranch. Without it a payload that never read the title would printtitle=ok, a reading nobody took. Every gate query now asks for the title, so the branch is reached only by a hand-built payload.adc0b997:title author{login};Arecord.Opt-out,Sign-up), and the casing rule as a whole.squash_merge_commit_titlereadsPR_TITLE.Open findings, introduced (edit budget spent)
scripts/README.md:258,introduced: the paragraph says a held title printsstatus=TITLE_NOT_CONVENTIONAL, including before a Copilot round. That holds forstatuson every open head.waitprints it only once it reaches a verdict. On its49exit, its timeout, and its checks-before-review early return, it printstitle=HELDand theTITLE NOT CONVENTIONALblock but not the status line.Closes on promotion: #1631
🤖 Generated with Claude Code