-
Notifications
You must be signed in to change notification settings - Fork 20
feat(api): REST polish — cache fix, Location header, 409 detail (#530) #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+147
−6
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| # Pre-commit checklist | ||
|
|
||
| Run the pre-commit checklist for this project: | ||
|
|
||
| 1. Remind me to update `CHANGELOG.md` `[Unreleased]` section (Added / Changed / Fixed / Removed) — I must do this manually. | ||
| 1. Update `CHANGELOG.md` `[Unreleased]` section — add an entry under the | ||
| appropriate subsection (Added / Changed / Fixed / Removed) describing the | ||
| changes made, referencing the issue number. | ||
| 2. Run `uv run flake8 .` — must pass. | ||
| 3. Run `uv run black --check .` — must pass (run `uv run black .` to auto-fix). | ||
| 4. Run `uv run pytest --cov=./ --cov-report=term` — all tests must pass, coverage must be ≥80%. | ||
|
|
||
| Run steps 2–4, report the results clearly, 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. | ||
| Run steps 1–4, report the results clearly, 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| # Pre-release checklist | ||
|
|
||
| Run the pre-release checklist for this project. | ||
|
|
||
| **Working style**: propose before acting at every step — do not commit, push, | ||
| open PRs, or create tags until I explicitly confirm. | ||
|
|
||
| --- | ||
|
|
||
| ## Phase 1 — Determine next release | ||
|
|
||
| 1. **Verify working tree**: Confirm we are on `master` with a clean working | ||
| tree. If behind the remote, propose `git pull` and wait for confirmation | ||
| before pulling. | ||
|
|
||
| 2. **Detect current release and propose next**: Read `CHANGELOG.md` for the | ||
| coach naming convention (A–Z table) and the most recent release heading. | ||
| Run `git tag --sort=-v:refname` to confirm the latest tag. Then: | ||
|
|
||
| - **Next codename**: next letter in the A–Z sequence after the current one. | ||
| Use lowercase with no spaces for the tag (e.g. `eriksson`); | ||
| Title Case for the CHANGELOG heading (e.g. `Eriksson`). | ||
| - **Version bump** — infer from `[Unreleased]`: | ||
|
|
||
| | Condition | Bump | | ||
| |---|---| | ||
| | Any entry marked BREAKING | MAJOR | | ||
| | Entries under Added | MINOR | | ||
| | Only Changed / Fixed / Removed | PATCH | | ||
|
|
||
| - If `[Unreleased]` has no entries, stop and warn — there is nothing to release. | ||
|
|
||
| Present a summary before proceeding: | ||
|
|
||
| ```text | ||
| Current: v2.1.0-delbosque | ||
| Proposed: v2.2.0-eriksson (MINOR — new features in Added) | ||
| Branch: release/v2.2.0-eriksson | ||
| Tag: v2.2.0-eriksson | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Phase 2 — Prepare release branch | ||
|
|
||
| 3. **Create release branch**: `release/vX.Y.Z-{codename}`. | ||
|
|
||
| 4. **Update CHANGELOG.md**: Move all content under `[Unreleased]` into a new | ||
| versioned heading `[X.Y.Z - Codename] - {today's date}`. Replace | ||
| `[Unreleased]` with a fresh empty template: | ||
|
|
||
| ```markdown | ||
| ## [Unreleased] | ||
|
|
||
| ### Added | ||
|
|
||
| ### Changed | ||
|
|
||
| ### Fixed | ||
|
|
||
| ### Removed | ||
| ``` | ||
|
|
||
| 5. **Propose commit**: `docs(changelog): release vX.Y.Z Codename` | ||
|
|
||
| 6. **After confirmation**: commit. Then run steps 2–4 of `/precommit` (linting, | ||
| formatting, tests — the CHANGELOG step is already handled). Push the branch | ||
| and open a PR into `master` only once all checks pass. | ||
|
|
||
| --- | ||
|
|
||
| ## Phase 3 — Tag and release | ||
|
|
||
| 7. **Stop and wait** for confirmation that: | ||
| - All CI checks have passed | ||
| - CodeRabbit review comments have been addressed | ||
| - The PR has been merged into `master` | ||
|
|
||
| 8. **Pull `master`**, then propose the annotated tag: | ||
| - Tag name: `vX.Y.Z-{codename}` | ||
| - Message: `Release X.Y.Z - Codename` | ||
|
|
||
| 9. **After confirmation**: create and push the tag. The CD pipeline triggers | ||
| automatically. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.