From fb338ea19fb42189ee7c93d21697e2afec319fc0 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com> Date: Wed, 11 Nov 2026 21:05:54 -0500 Subject: [PATCH] chore(skills): put collapsed technical changes in every release note (#5567) * chore(skills): put collapsed technical changes in every release note The draft-release-notes skill now writes env var and API changes as a "Technical changes" section of two collapsed
blocks, placed after the warning callouts, in every release, stable or prerelease. API rows are grouped by area. This replaces the alpha's NOTE callout, the beta's bottom API table, and the stable release dropping both. Co-Authored-By: Claude Opus 5.5 * chore(skills): keep technical changes in patch notes and ref env rows Addresses Greptile review on #5567. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .claude/skills/draft-release-notes/SKILL.md | 89 ++++++++++--------- .../skills/draft-release-notes/template.md | 78 ++++++++-------- 2 files changed, 91 insertions(+), 76 deletions(-) diff --git a/.claude/skills/draft-release-notes/SKILL.md b/.claude/skills/draft-release-notes/SKILL.md index fa43590d8..707742ed0 100644 --- a/.claude/skills/draft-release-notes/SKILL.md +++ b/.claude/skills/draft-release-notes/SKILL.md @@ -31,7 +31,9 @@ This is what the history does without exception: every `.1` prerelease and every feature-carrying stable gets Highlights and partitioned bullets, while every later prerelease in the same line is a plain list of what landed since. The flat shape is just the autogenerated body with `## New Contributors` and the compare -link kept, so for those tags steps 4 through 6 do not apply. +link kept, so for those tags steps 4 through 6 do not apply, except that the +`## Technical changes` section still goes above `## What's Changed` when the +range has env var or API changes. ## 2. Resolve the range @@ -112,24 +114,27 @@ usually a compression of the PR description. Follow `template.md` in this skill directory for the exact skeleton. Sections in this order, all optional except the last two: -| Section | Contents | -| --------------------- | -------------------------------------------------------------------- | -| Callouts | `> [!WARNING]` upgrade actions, `> [!NOTE]` env vars and API changes | -| `## Highlights` | `### Title` + prose per headline feature | -| `## Minor changes` | every `feat:` PR not already a Highlight | -| `## Fixes` | every `fix:` PR | -| `## Other changes` | `perf:`, `chore:`, `docs:`, `refactor:`, `revert:`, `build(deps):` | -| API changes | table, inline for an alpha, in `
` once it gets long | -| `## New Contributors` | verbatim from the autogenerated body | -| `**Full Changelog**` | verbatim from the autogenerated body | +| Section | Contents | +| ---------------------- | ------------------------------------------------------------------ | +| Callouts | `> [!CAUTION]` / `> [!WARNING]` upgrade actions | +| `## Technical changes` | collapsed `🌎 ENVIRONMENT VARIABLES` and `📡 API CHANGES` blocks | +| `## Highlights` | `### Title` + prose per headline feature | +| `## Minor changes` | every `feat:` PR not already a Highlight | +| `## Fixes` | every `fix:` PR | +| `## Other changes` | `perf:`, `chore:`, `docs:`, `refactor:`, `revert:`, `build(deps):` | +| `## New Contributors` | verbatim from the autogenerated body | +| `**Full Changelog**` | verbatim from the autogenerated body | -Which of the two optional tables you carry depends on the line, not on whether -the tag is stable. See section 6. +`## Technical changes` goes in every release, stable or prerelease, whenever the +range has env var or API changes. Both blocks are `
` collapsed by +default, so they cost a casual reader nothing, and the maintainer deletes them +when a release doesn't want them. Leave out a block that would be empty. -**A patch release skips all of it**, stable or prerelease. Under roughly eight +**A patch release skips the rest**, stable or prerelease. Under roughly eight PRs with no `feat:`, publish a single flat `## What's Changed` list plus the -changelog link, the way `4.9.1-beta.1` and `4.9.1` both did. Do not manufacture -Highlights for a bugfix release. +changelog link, the way `4.9.1-beta.1` and `4.9.1` both did, keeping +`## Technical changes` above it when the range has env var or API changes. Do +not manufacture Highlights for a bugfix release. ## 5. Section rules @@ -166,12 +171,25 @@ if it matters. **Callouts.** A `> [!WARNING]` is for something the upgrader must do, and it goes at the very top, above Highlights: a renamed `config.yml` key, a DB privilege the migration needs, a proxy cache to purge. Write the migration action, not the -rationale. A `> [!NOTE]` carries the env var table and the API change table. A -`> [!IMPORTANT]` marks a feature shipping ahead of its documentation. +rationale. A `> [!CAUTION]` covers a slow first start (migrations that rewrite +`roms`). A `> [!IMPORTANT]` marks a feature shipping ahead of its documentation. -Env vars go in a table with `variable | default | description`; API changes in a -table with `Change | Description` for edits, and `Method | Path | Description` -for a new endpoint group. Prefix a breaking entry with `⚠️`. +**Technical changes.** Follow the template's markup exactly: `
` with an +indented `🌎 ENVIRONMENT VARIABLES` or +`📡 API CHANGES`, a blank line after the summary and before +`
` (GitHub only renders the tables with them). + +- Env vars: one `variable | default | description` table, covering new variables + and ones whose default or meaning changed. Split it under `####` headings by + area once it passes about ten rows. +- API changes: group rows under `####` headings by area (auth and users, devices + and sync, ROMs, platforms, streaming, heartbeat and config, ...). Edits go in a + `Change | Description` table; a new endpoint group gets its own + `Method | Path | Description` table; socket events get a + `Direction | Event | Description` table under `#### Socket.IO events`. Include + `config.yml` keys and new tasks in the last group. +- End every row with its `(#NNNN)` refs, and prefix a breaking entry with `⚠️`. + A security fix that changes what a route accepts or returns belongs here too. ## 6. Prerelease versus stable @@ -184,30 +202,21 @@ as a blank page, so open the previous one's body and edit that: gh release view 5.1.0-beta.1 --json body --jq .body ``` -- **alpha.1** opens the line. Put the env var and API tables in one `> [!NOTE]` - block at the top, where the third-party app developers reading the alpha will - see them first. +- **alpha.1** opens the line. - **beta.1** is the alpha's notes plus everything merged since. Carry the alpha's Highlights across verbatim unless the feature changed, add the new ones, and - fold in any warning that alpha feedback produced. Once the API table runs past - roughly fifteen rows, move it to the bottom inside - `

API changes

`, since by the beta most - readers are upgraders rather than integrators. + fold in any warning that alpha feedback produced. Add the new rows to + Technical changes. - **the stable release** is the last full-treatment prerelease's notes plus - everything merged during the beta. Two things change: + everything merged during the beta. Re-curate the Highlights: - **Re-curate the Highlights.** They are not carried over untouched. Going from - `5.0.0-beta.1` to `5.0.0`, four were added (CRT mode, server-side ROM patching, - the permission system, the music player), three were dropped, and three were - renamed, "A brand-new frontend" becoming "UI overhaul". Pick what the finished - release is about, not what the beta was about. + going from `5.0.0-beta.1` to `5.0.0`, four were added (CRT mode, server-side + ROM patching, the permission system, the music player), three were dropped, + and three were renamed, "A brand-new frontend" becoming "UI overhaul". Pick + what the finished release is about, not what the beta was about. - **Drop the tables a prerelease already published.** The API table is for the - developers tracking the line, and they read it in the alpha. `5.1.0`, `5.0.0`, - `4.9.0` and `4.8.0` all dropped theirs; `5.2.0` kept one only because its line - shipped no prerelease that carried it. Keep the env var table when it grew - during the beta, as `5.1.0` did going from three variables to seven, since a - reader upgrading straight from the last stable has seen none of them. + Keep the whole Technical changes section, since a reader upgrading straight + from the last stable has seen none of it. The maintainer trims it if they want. ## 7. Humanize the prose diff --git a/.claude/skills/draft-release-notes/template.md b/.claude/skills/draft-release-notes/template.md index bb898f518..65175f495 100644 --- a/.claude/skills/draft-release-notes/template.md +++ b/.claude/skills/draft-release-notes/template.md @@ -2,6 +2,7 @@ + > [!WARNING] > privilege the migration needs, proxy cache to purge. One warning per action.> -> [!NOTE] -> -> ### Environment variables -> -> | variable | default | description | -> | ----------- | ------- | ------------------------------------------ | -> | NEW_ENV_VAR | `-` | | -> -> ### API changes -> -> | Change | Description | -> | ----------------- | ------------------------------------------------------------ | -> | `POST /api/thing` | | -> | `ThingSchema` | | +## Technical changes + +
+ 🌎 ENVIRONMENT VARIABLES + +| variable | default | description | +| ------------------ | --------------- | -------------------------------------------------- | +| NEW_ENV_VAR | `-` | (#NNNN) | +| ⚠️ CHANGED_ENV_VAR | `` | (#NNNN) | + +
+ +
+ 📡 API CHANGES + +#### + +| Change | Description | +| ----------------- | ------------------------------------------------ | +| `POST /api/thing` | (#NNNN) | +| ⚠️ `ThingSchema` | (#NNNN) | + +#### + +| Method | Path | Description | +| ------ | ------------ | ------------------------- | +| GET | `/api/thing` | (#NNNN) | + +#### Socket.IO events + +| Direction | Event | Description | +| ---------------- | --------------- | ------------------------------------------- | +| Server to client | `thing:updated` | (#NNNN) | + +
## Highlights @@ -65,23 +88,6 @@ scan: - perf(scope): by @user in https://github.com/rommapp/romm/pull/NNNN - build(deps): bump <pkg> from x to y by @dependabot[bot] in https://github.com/rommapp/romm/pull/NNNN -<!-- beta only, once the API table outgrows the top callout --> -<details> - -<summary><h2>API changes</h2></summary> - -| Change | Description | -| ----------------- | -------------- | -| `POST /api/thing` | <what it does> | - -### <New endpoint group> - -| Method | Path | Description | -| ------ | -------- | ----------------- | -| `GET` | `/thing` | <what it returns> | - -</details> - ## New Contributors - @user made their first contribution in https://github.com/rommapp/romm/pull/NNNN