1 ---
2 name: writing-releases
3 description: Writes GitHub release notes for Medusa releases in the established style. Use when generating a draft release description from a list of commits and PR metadata. Covers minimal patch releases, single-highlight releases, multi-feature releases, and releases with breaking changes.
4 ---
5
6 # Writing Medusa Release Notes
7
8 Generates GitHub release notes from commit/PR data in the established Medusa style.
9
10 ## Constraints
11
12 - **Full Changelog link is mandatory** — always the last line: `**Full Changelog**: [vPREV...vNEW](compare-url)`
13 - **No top-level Breaking Changes section** — breaking changes are embedded inside their Highlight subsection with `🚧 Breaking change`, never in a separate `## Breaking Changes` heading
14 - **Bullet format is strict** — every entry in Features/Bugs/Chores/etc. must include author link and PR link (see `reference/format.md`)
15 - **Highlights are not a summary of all PRs** — only significant changes qualify; routine additions go in Features/Bugs bullets only (see `reference/release-types.md`)
16 - **No emojis** — the only permitted emoji is `🚧` on breaking change highlights; use none anywhere else
17 - **Code block required for actionable steps** — if a highlight requires the developer to install a package, run a command, or update config, include a fenced code block with the exact command(s)
18
19 ## Load Reference Files When Needed
20
21 > **Load at least one reference file before writing.**
22
23 | Task | Load |
24 |------|------|
25 | Formatting sections and bullets | `reference/format.md` |
26 | Deciding whether to write Highlights, and identifying breaking changes | `reference/release-types.md` |
27 | Writing the Highlights section | `reference/highlights.md` |
28
29 ## Quick Reference
30
31 ### Release type decision
32
33 | Commit set | Release type |
34 |-----------|-------------|
35 | Only routine fixes/chores, no user-facing impact | Minimal — no Highlights section |
36 | One important change is the main reason for the release | Single Highlight |
37 | Multiple significant features or fixes | Multi-Highlight |
38 | Any PR with a minor changeset in `.changeset/` | Add `🚧` to that Highlight |
39
40 ### Section order (include only sections with entries)
41
42 ```
43 ## Highlights
44 ## Features
45 ## Bugs
46 ## Documentation
47 ## Chores
48 ## Other Changes
49 ## New Contributors
50 **Full Changelog**: [vPREV...vNEW](url)
51 ```
52
53 ## Common Mistakes
54
55 - [ ] Adding a title or `# Heading` at the top — release notes have no title, start directly with the first section
56 - [ ] Adding a `## Breaking Changes` top-level section — embed inside the Highlight instead
57 - [ ] Putting a routine bug fix or small feature addition in Highlights
58 - [ ] Missing the Full Changelog link at the end
59 - [ ] Bullet missing author link or PR link
60 - [ ] Using PR title verbatim as a Highlight heading — write a descriptive outcome-focused title
61 - [ ] Treating every `feat:` commit as a Highlight candidate
62 - [ ] Using emojis anywhere except `🚧` on breaking change highlights
63 - [ ] Writing a Highlight that requires a developer action (install, run, config change) without a fenced code block
64
65 ## Reference Files
66
67 ```
68 reference/format.md — section order, bullet format, commit prefix → section mapping
69 reference/release-types.md — when to add Highlights, breaking change detection, highlight criteria
70 reference/highlights.md — how to write Highlight subsections
71 ```