Skip to content

Commit 777d805

Browse files
nanotaboadaclaude
andcommitted
docs(commands): refactor pre-release Phase 2 workflow
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0b761cd commit 777d805

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

.claude/commands/pre-release.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,36 @@ proceeding. Never create a branch, commit, tag, or push without approval.
5858
- `[unreleased]``.../compare/vX.Y.Z-{club}...HEAD`
5959
- Add `[X.Y.Z - ClubName]``.../compare/v{prev-tag}...vX.Y.Z-{club}`
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-{club} (#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–4.
77+
6. Run `./mvnw clean install` — must succeed with no compilation warnings, all
78+
tests passing, and the JaCoCo check reporting `All coverage checks have been met.`
79+
80+
7. If Docker is running, run `docker compose build` — must succeed with no errors.
81+
Skip with a note if Docker Desktop is not running.
82+
83+
8. Stage `CHANGELOG.md` and commit using the approved message from step 5.
7384

74-
5. Propose opening a PR from `release/vX.Y.Z-{club}` into `master`.
85+
9. Propose opening a PR from `release/vX.Y.Z-{club}` into `master`.
7586
**Wait for explicit approval before opening.**
7687

77-
6. Open the PR with:
78-
- Title: `docs(changelog): prepare release notes for vX.Y.Z-{club}`
79-
- Body summarising what is included in this release.
88+
10. Open the PR with:
89+
- Title: `docs(changelog): prepare release notes for vX.Y.Z-{club}`
90+
- Body summarising what is included in this release.
8091

8192
---
8293

0 commit comments

Comments
 (0)