Skip to content

Commit 0db6d2b

Browse files
nanotaboadaclaude
andcommitted
chore(claude): apply pre-commit and pre-release improvements (#554)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1b9b77d commit 0db6d2b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.claude/commands/pre-commit.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Pre-commit checklist
22

3+
Before running the checklist, run `git fetch origin`. If the current branch is behind `origin/master`, stop and rebase before proceeding.
4+
35
Run the pre-commit checklist for this project:
46

57
1. Update `CHANGELOG.md` `[Unreleased]` section — add an entry under the
@@ -13,4 +15,4 @@ Run the pre-commit checklist for this project:
1315
- If only nitpick-level findings, report them and continue to the commit proposal.
1416
- If `coderabbit` is not installed, skip this step with a note.
1517

16-
Run steps 1–4, report the results clearly, run step 5 if available, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat` `fix` `chore` `docs` `test` `refactor` `ci` `perf`). Do not create the branch or commit until I explicitly confirm.
18+
Run steps 1–4, report the results clearly, then run step 5 (CodeRabbit review) if available, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat` `fix` `chore` `docs` `test` `refactor` `ci` `perf`). Do not create the branch or commit until I explicitly confirm.

.claude/commands/pre-release.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ open PRs, or create tags until I explicitly confirm.
2020
- **Next codename**: next letter in the A–Z sequence after the current one.
2121
Use lowercase with no spaces for the tag (e.g. `eriksson`);
2222
Title Case for the CHANGELOG heading (e.g. `Eriksson`).
23+
If no tags exist yet, start at `A` (first coach in the table).
24+
If letters were skipped, pick the next after the highest existing
25+
codename — do not backfill gaps.
26+
If the last codename is `Z` (Zeman), the list is finite — stop and
27+
flag that the naming convention needs to be revisited.
2328
- **Version bump** — infer from `[Unreleased]`:
2429

2530
| Condition | Bump |
2631
|---|---|
27-
| Any entry marked BREAKING | MAJOR |
32+
| Any entry marked BREAKING (case-insensitive), `BREAKING CHANGE:` token in a commit footer, or `!` suffix after type/scope (e.g. `feat!:`) | MAJOR |
2833
| Entries under Added | MINOR |
2934
| Only Changed / Fixed / Removed | PATCH |
3035

0 commit comments

Comments
 (0)