Skip to content

Commit be09969

Browse files
nanotaboadaclaude
andcommitted
chore(commands): run CodeRabbit before commit in pre-release
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a1787a6 commit be09969

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.claude/commands/pre-release.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,31 @@ proceeding. Never create a branch, commit, tag, or push without approval.
5858
- `[unreleased]``.../compare/vX.Y.Z-{stadium}...HEAD`
5959
- Add `[X.Y.Z - StadiumName]``.../compare/v{prev-tag}...vX.Y.Z-{stadium}`
6060

61-
3. Show the full diff of `CHANGELOG.md` and propose this commit message:
61+
3. Show the full diff of `CHANGELOG.md`.
62+
63+
4. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`
64+
on the uncommitted CHANGELOG changes:
65+
- If actionable/serious findings are reported, stop and address them before proceeding.
66+
- If only nitpick-level findings, report them and continue.
67+
- If `coderabbit` is not installed, skip with a note.
68+
69+
5. Propose this commit message:
6270

6371
```text
6472
docs(changelog): prepare release notes for vX.Y.Z-{stadium} (#issue)
6573
```
6674

6775
**Wait for explicit approval before committing.**
6876

69-
4. Run `/pre-commit`, manually skipping step 1 — do not re-run or re-attempt
70-
the CHANGELOG update; it was already completed above. Open with: "Skip
71-
step 1 — CHANGELOG was already updated as part of this release branch."
72-
Proceed directly with steps 2–5.
77+
6. Run `/pre-commit`, manually skipping step 1 and step 5 — the CHANGELOG update
78+
and CodeRabbit review were already completed above. Open with: "Skip step 1
79+
(CHANGELOG already updated) and step 5 (CodeRabbit already run) — proceeding
80+
with steps 2–4."
7381

74-
5. Propose opening a PR from `release/vX.Y.Z-{stadium}` into `master`.
82+
7. Propose opening a PR from `release/vX.Y.Z-{stadium}` into `master`.
7583
**Wait for explicit approval before opening.**
7684

77-
6. Open the PR with:
85+
8. Open the PR with:
7886
- Title: `docs(changelog): prepare release notes for vX.Y.Z-{stadium}`
7987
- Body summarising what is included in this release.
8088

0 commit comments

Comments
 (0)