Files
Showy/.github/prompts/commit-from-milestone.prompt.md
T
Mohammed Abad ce01dc34fa feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload
- Fix credit dedup key to people_id + cast_type (scoped to entry_id)
- Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag
- Join multiple roles/jobs with "; " instead of taking only the first
- Add episode_count field to Credit model from total_episode_count
- Increase character and job columns to VARCHAR(500)
- Deselect existing collection posters/backdrops before inserting new upload
- Updated docs-vault
- Updated some agents files
2026-04-23 16:51:18 +01:00

48 lines
1.8 KiB
Markdown

---
description: Generate backend & frontend commit messages from the latest milestone in changes.md
mode: ask
---
Read the file `changes.md` and find the **last `### Milestone` section** (the one closest to the end of the file).
From that milestone, generate **two conventional-commit messages** — one for backend changes and one for frontend changes.
## Rules
1. **Format** — Use [Conventional Commits](https://www.conventionalcommits.org/):
```
<type>(<scope>): <summary>
- detail 1
- detail 2
```
2. **Types** — Pick the most fitting: `feat`, `fix`, `refactor`, `chore`, `docs`, `perf`, `style`.
If the milestone contains both features and fixes, prefer `feat` for the summary and list fixes in the body.
3. **Scope** — Use `backend` or `frontend` (include the docs/docs-vault with the backend).
4. **Summary line** — Max 72 characters, imperative mood, no period.
5. **Body bullets** — One bullet per change listed in the milestone. Keep them concise but preserve meaning.
6. **Output** — Return exactly two fenced code blocks labelled `Backend Commit` and `Frontend Commit`. Nothing else.
## Example output
```text
feat(backend): add episode_count to credits and fix duplicate inserts
- Fix credit dedup key to people_id + cast_type (scoped to entry_id)
- Detect aggregate_credits format via Array.isArray(c.roles)
- Join multiple roles/jobs with "; " instead of taking only the first
- Add episode_count field to Credit model from total_episode_count
- Increase character and job columns to VARCHAR(500)
- Deselect old collection media before inserting new upload
```
```text
feat(frontend): add MarkSeasonWatchedDialog with scatter mode
- Create MarkSeasonWatchedDialog replacing two-step flow
- Add scatter mode to distribute episodes across a date range
- Always show "Mark Season Watched" button
```