Skip to content

Commit cb6985d

Browse files
committed
docs: enforce changelog updates and /pr skill usage before PRs
1 parent a53ea18 commit cb6985d

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

.claude/CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,14 @@ Complete end-to-end workflow from issue to PR:
241241
- Use speculative/unproven patterns
242242
- Commit without tests passing
243243
- Batch unrelated changes in one PR
244+
- Create a PR without using the `/pr` skill (even if user says "create pr")
244245

245246
### Always:
246247
- Write tests before implementation
247248
- Use existing patterns from `tests/**` and `src/**`
248249
- Minimal code in GREEN phase
249250
- Keep tests passing during REFACTOR
251+
- Update CHANGELOG.md before creating a PR (for user-facing changes)
250252
- Run quality checks before committing
251253
- Update CHANGELOG.md for user-visible changes
252254
- Maintain Bash 3.0+ compatibility

.claude/skills/pr/SKILL.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ allowed-tools: Bash, Read, Grep, Glob
1111

1212
Push branch and create a PR with a concise, issue-linked description.
1313

14+
> **IMPORTANT:** This skill MUST be used for ALL pull request creation — even when the user says "create pr" without `/pr`. Never create a PR without following these steps.
15+
1416
## Current Branch Context
1517
- Branch: !`git branch --show-current`
1618
- Commits: !`git log main..HEAD --oneline 2>/dev/null`
@@ -23,10 +25,13 @@ Push branch and create a PR with a concise, issue-linked description.
2325

2426
1. **Review the branch context above** — the commits and changed files are already loaded.
2527

26-
2. **Check CHANGELOG.md** — if it wasn't updated for these changes, update it now and commit:
27-
```bash
28-
git add CHANGELOG.md && git commit -m "docs: update changelog"
29-
```
28+
2. **MANDATORY: Update CHANGELOG.md** — Read `CHANGELOG.md` and check the `## Unreleased` section. If the changes from this branch are NOT already listed there, you MUST update it before proceeding. **Do NOT skip this step. Do NOT proceed to push without verifying.**
29+
- Add entries under the appropriate subsection (`### Added`, `### Changed`, `### Fixed`, etc.)
30+
- Reference issue numbers where applicable (e.g., `(Issue #123)`)
31+
- Commit the update:
32+
```bash
33+
git add CHANGELOG.md && git commit -m "docs: update changelog"
34+
```
3035

3136
3. **Push branch**:
3237
```bash

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Unreleased
44

5+
### Added
6+
- Add `assert_have_been_called_nth_with` assertion for verifying arguments on the Nth invocation of a spy (Issue #172)
7+
8+
### Changed
9+
- Split Windows CI test jobs into parallel chunks to avoid timeouts
10+
511
## [0.33.0](https://github.com/TypedDevs/bashunit/compare/0.32.0...0.33.0) - 2026-02-15
612

713
### Changed

0 commit comments

Comments
 (0)