Skip to content

Commit db4db58

Browse files
authored
Merge pull request #327 from nanotaboada/release/v2.0.2-dortmund
docs(changelog): prepare release notes for v2.0.2-dortmund
2 parents 1d78a6e + 777d805 commit db4db58

2 files changed

Lines changed: 38 additions & 14 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

CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,29 @@ Release names follow the **historic football clubs** naming convention (A–Z):
4444

4545
### Changed
4646

47+
- Refactor `/pre-release` Phase 2: inline build and test steps directly
48+
(`./mvnw clean install`, `docker compose build`) instead of delegating to
49+
`/pre-commit`; move CodeRabbit review to run against the uncommitted CHANGELOG
50+
diff; separate commit-message approval from the actual commit so checks run
51+
in between
52+
53+
### Fixed
54+
55+
### Removed
56+
57+
---
58+
59+
## [2.0.2 - Borussia Dortmund] - 2026-04-27
60+
61+
### Changed
62+
4763
- Return `422 Unprocessable Entity` for field validation failures (`@Valid`
4864
constraint violations and squad number mismatch) instead of `400 Bad Request`;
4965
reserve `400` for genuinely malformed requests (unparseable JSON, wrong
5066
`Content-Type`); introduce `GlobalExceptionHandler` (`@ControllerAdvice`) to
5167
intercept `MethodArgumentNotValidException`; update OpenAPI `@ApiResponse`
5268
annotations and test assertions accordingly (#319)
5369

54-
### Fixed
55-
56-
### Removed
57-
5870
---
5971

6072
## [2.0.1 - Chelsea] - 2026-04-11
@@ -164,7 +176,8 @@ Initial release. See [README.md](README.md) for complete feature list and docume
164176
165177
-->
166178

167-
[Unreleased]: https://github.com/nanotaboada/java.samples.spring.boot/compare/v2.0.1-chelsea...HEAD
179+
[Unreleased]: https://github.com/nanotaboada/java.samples.spring.boot/compare/v2.0.2-dortmund...HEAD
180+
[2.0.2 - Borussia Dortmund]: https://github.com/nanotaboada/java.samples.spring.boot/compare/v2.0.1-chelsea...v2.0.2-dortmund
168181
[2.0.1 - Chelsea]: https://github.com/nanotaboada/java.samples.spring.boot/compare/v2.0.0-barcelona...v2.0.1-chelsea
169182
[2.0.0 - Barcelona]: https://github.com/nanotaboada/java.samples.spring.boot/compare/v1.0.0-arsenal...v2.0.0-barcelona
170183
[1.0.0 - Arsenal]: https://github.com/nanotaboada/java.samples.spring.boot/releases/tag/v1.0.0-arsenal

0 commit comments

Comments
 (0)