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 <details> 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 <noreply@anthropic.com>

* chore(skills): keep technical changes in patch notes and ref env rows

Addresses Greptile review on #5567.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-11-11 21:05:54 -05:00
committed by GitHub
parent 636308984e
commit fb338ea19f
2 changed files with 91 additions and 76 deletions

View File

@@ -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 `<details>` 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 `<details>` 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: `<details>` with an
indented `<summary>🌎 ENVIRONMENT VARIABLES</summary>` or
`<summary>📡 API CHANGES</summary>`, a blank line after the summary and before
`</details>` (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
`<details><summary><h2>API changes</h2></summary>`, 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

View File

@@ -2,6 +2,7 @@
<!-- trunk-ignore-all(markdownlint/MD033) -->
<!-- trunk-ignore-all(markdownlint/MD034) -->
<!-- trunk-ignore-all(markdownlint/MD024) -->
<!-- trunk-ignore-all(markdownlint/MD001) -->
<!--
Skeleton for a RomM release note, stable or alpha.1 / beta.1 prerelease. Drop any
@@ -9,33 +10,55 @@ section that has no content. Inline HTML and bare URLs are deliberate here:
GitHub renders the notes, and the bullet lines are copied verbatim out of the
autogenerated body.
The API changes table belongs to the prerelease that opens the line. A stable
release drops it, unless the line shipped no prerelease carrying one.
Every release, stable or prerelease, carries the collapsed Technical changes
section when its range has env var or API changes; the maintainer deletes it
when they don't want it. Drop either <details> block that would be empty.
A release under roughly eight PRs with no feat: work, and every prerelease after
the first on its line, replaces everything from the callouts down to Other
changes with a single flat `## What's Changed` list carrying every autogenerated
bullet, then keeps New Contributors and the changelog link.
the first on its line, replaces everything from Highlights down to Other changes
with a single flat `## What's Changed` list carrying every autogenerated bullet,
then keeps New Contributors and the changelog link.
-->
> [!WARNING]
> <Action the upgrader must take, in the imperative. Renamed config key, DB
> privilege the migration needs, proxy cache to purge. One warning per action.>
> [!NOTE]
>
> ### Environment variables
>
> | variable | default | description |
> | ----------- | ------- | ------------------------------------------ |
> | NEW_ENV_VAR | `-` | <what it does, and whether it is required> |
>
> ### API changes
>
> | Change | Description |
> | ----------------- | ------------------------------------------------------------ |
> | `POST /api/thing` | <what it does> |
> | `ThingSchema` | <field added or changed; prefix the row with ⚠️ if breaking> |
## Technical changes
<details>
<summary>🌎 ENVIRONMENT VARIABLES</summary>
| variable | default | description |
| ------------------ | --------------- | -------------------------------------------------- |
| NEW_ENV_VAR | `-` | <what it does, and whether it is required> (#NNNN) |
| ⚠️ CHANGED_ENV_VAR | `<new default>` | <what changed; ⚠️ if an upgrader must act> (#NNNN) |
</details>
<details>
<summary>📡 API CHANGES</summary>
#### <Area, e.g. Auth and users>
| Change | Description |
| ----------------- | ------------------------------------------------ |
| `POST /api/thing` | <what it does> (#NNNN) |
| ⚠️ `ThingSchema` | <field added or changed; ⚠️ if breaking> (#NNNN) |
#### <New endpoint group>
| Method | Path | Description |
| ------ | ------------ | ------------------------- |
| GET | `/api/thing` | <what it returns> (#NNNN) |
#### Socket.IO events
| Direction | Event | Description |
| ---------------- | --------------- | ------------------------------------------- |
| Server to client | `thing:updated` | <when it fires and who receives it> (#NNNN) |
</details>
## Highlights
@@ -65,23 +88,6 @@ scan:
- perf(scope): <title> 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