Skip to content

Commit d3bd74d

Browse files
cliffhallclaude
andcommitted
chore(scripts): one release-wide Thanks section, as the Inspector's; drop Credit lines
Thanks is now a single `## Thanks for helping us improve` list at the end of the notes, laid out as the Inspector's release notes are, rather than a subsection per server. The maintainer-written `Credit: @login` convention is removed: outside-PR authors are added to the draft's Thanks by hand, as before, and the harvest docs are back to their v2/main wording. From Copilot's review: refuse a milestone tag that already exists (GitHub would use its commit, not --merge-sha), and count a rename's source path when bucketing a PR by server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent b1df103 commit d3bd74d

6 files changed

Lines changed: 193 additions & 242 deletions

File tree

‎.claude/skills/issue-triage/SKILL.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,6 @@ For each PR marked for harvest, once the manifest is approved:
397397
does not approve it. The body states the problem in its own words (never just
398398
"see the PR"), links the PR as a prototype, and credits its author. Then score
399399
it in pass 1 like any other inflow.
400-
- **The credit is a line of its own**, `Credit: @<login>` (several logins
401-
comma-separated), in the issue body or the comment. The release notes credit
402-
the people on that line (`release` skill, 5a), and only when a maintainer
403-
wrote it; a credit in prose is not read.
404400
- **A duplicate group gets one issue**, linking every PR in the group.
405401

406402
### 4. Close

‎.claude/skills/release/SKILL.md‎

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -361,26 +361,27 @@ package, its version PR (2b or 2c) runs again first.
361361
Draft these once the merge PR has merged, so `main` holds what is being
362362
released. [`scripts/release-notes.mjs`](../../../scripts/release-notes.mjs)
363363
(`npm run release:notes`) builds them; its header says why each part is
364-
there. The notes are laid out per package, because a reader wants to know
364+
there. The changes are laid out per package, because a reader wants to know
365365
what changed in the server they use:
366366

367367
1. **`## Packages`.** Every package on the merge commit, its version, and
368368
whether this release publishes it (the registry does not have that version
369369
yet) or leaves it unchanged. The tag is the milestone's name, not a
370370
version, so this table is where a reader finds the versions.
371-
2. **One `## <package> <version>` section per published package**: its
372-
`### What's Changed` (the PRs that change files under its `src/<dir>/`) and
373-
its `### Thanks for helping us improve` (the community reporters of the
374-
issues those PRs close). A PR that touches several servers is listed under
375-
each.
371+
2. **One `## <package> <version>` section per published package**, whose
372+
`### What's Changed` lists the PRs that change files under its
373+
`src/<dir>/`. A PR that touches several servers is listed under each.
376374
3. **`## Repository`**: every PR no published section took (CI, docs, skills,
377375
a server whose version did not change), so no PR in the generated list is
378-
dropped. It carries its own Thanks.
376+
dropped.
379377
4. GitHub's **New Contributors** block and **Full Changelog** link, verbatim.
380378
5. **The release-ledger line**, linking the artifact from 4d.
381379
6. **`## Known issues`**, only when you pass one. It names the issue, who is
382380
affected and the workaround. What counts as a known issue is a maintainer's
383381
judgment, so it is written by hand, never generated.
382+
7. **`## Thanks for helping us improve`**: one list for the whole release, as
383+
the Inspector's release notes have it, crediting the community members
384+
whose issues the listed PRs close, one line per person, most issues first.
384385

385386
GitHub adds everyone `@`-mentioned in a release body to that release's
386387
**Contributors** strip, so the people credited appear there too.
@@ -417,7 +418,9 @@ npm run --silent release:notes -- --milestone "$MILESTONE" --merge-sha "$MERGE_S
417418

418419
`--draft` creates a **draft** Release tagged `$MILESTONE` at `$MERGE_SHA`. It
419420
refuses a SHA that is not on `main`, and a tag that already has a Release or
420-
draft (edit or delete that one instead). There is no `--publish`: publishing
421+
draft (edit or delete that one instead). Every run, preview included, refuses
422+
a milestone tag that already exists: GitHub would build the notes and the
423+
Release from that tag's commit, not `$MERGE_SHA`. There is no `--publish`: publishing
421424
starts `release.yml`, so it is the maintainer's act in 5b.
422425

423426
The rules the helper applies:
@@ -434,13 +437,14 @@ The rules the helper applies:
434437
- **Maintainers and bots are excluded by permission, not by name.** A
435438
maintainer is anyone with `admin`, `maintain` or `write` on the repo. Bots,
436439
deleted accounts, PR numbers and other repos' issues are dropped.
437-
- **Outside PRs are credited through a `Credit: @login` line.** This repo
440+
- **Outside PRs are credited through their issue, by hand.** This repo
438441
closes an outside PR and files an issue for a fix worth keeping, crediting
439-
the PR's author there (`issue-triage`, Harvest). The helper credits every
440-
login on a `Credit:` line **a maintainer wrote**, in the issue's body or a
441-
comment. A credit written as prose is not read: add the line.
442+
the PR's author in that issue (`issue-triage`, Harvest). The helper credits
443+
the issue's *author*, who is then a maintainer and is excluded. Read the
444+
milestone's issues for such credits and add those people to the draft's
445+
Thanks section by hand before publishing.
442446
- **"Addresses", not "fixes."** The credited issues include feature requests.
443-
- **A Thanks subsection is left out** when no community reporter remains.
447+
- **The Thanks section is left out** when no community reporter remains.
444448
- **It fails fast.** A failed `gh` call, a GraphQL error, a missing PR or
445449
issue, an unknown permission value, a generated line it does not recognize,
446450
or a registry answer other than 200 or 404 aborts the run before anything is

‎RELEASING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ A release ships one **milestone**. The step-by-step procedure, with its commands
8383
A milestone that touches both languages and needs an audit fix has all three. They are merged before the next step starts.
8484
3. **The merge PR** takes `v2/main` into `main`. It is a pure merge: its branch is `origin/v2/main` with no commits of its own, and the merged tree equals `origin/v2/main`'s. Its body starts with `Part of #<release issue>`, not `Closes`, because `main` is the default branch and a closing keyword there would close the issue before anything is published. It is merged with a merge commit, never squashed.
8585
4. **The release ledger** is linked from the merge PR. It records, for the merge branch's tree: `npm run local:gate`; `npm run pack:verify` for each package; each server-facing issue in the milestone exercised through a client; and a targeted probe for each issue with no client surface. The maintainers approve the merge on it. A finding is fixed on `v2/main` and merged in again, never committed to the merge branch.
86-
5. **A maintainer publishes a GitHub Release** targeting the merge commit on `main` (the commit the ledger verified, chosen by SHA rather than by the branch name, which may have moved). [`scripts/release-notes.mjs`](scripts/release-notes.mjs) (`npm run release:notes`) writes the notes, one section per published package with its PRs and the community reporters it thanks, and with `--draft` creates the draft Release under a tag named for the milestone (`vX.Y.Z`). The maintainer reads the draft and publishes it. The tag is a label, not a version.
86+
5. **A maintainer publishes a GitHub Release** targeting the merge commit on `main` (the commit the ledger verified, chosen by SHA rather than by the branch name, which may have moved). [`scripts/release-notes.mjs`](scripts/release-notes.mjs) (`npm run release:notes`) writes the notes, one section per published package with its PRs and a Thanks section for the community members whose issues the release addresses, and with `--draft` creates the draft Release under a tag named for the milestone (`vX.Y.Z`). The maintainer reads the draft and publishes it. The tag is a label, not a version.
8787
6. **The build jobs run, then the maintainer approves the `release` environment deployments.** Each package publishes if its version is not on the registry yet; the rest skip cleanly.
8888
7. **The release issue is closed by hand**, and its card moves to Done.
8989

‎docs/contribution-model.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,13 @@ For each PR marked for harvest:
113113
then a search of open and closed issues), file nothing. The issue is the
114114
pointer in the close comment. Add the PR to that issue as a prototype in the
115115
same comment that credits its author, so the work is findable from the issue.
116-
The credit is a line of its own, `Credit: @<login>`: the release notes read
117-
that line (`scripts/release-notes.mjs`), and only when a maintainer wrote it.
118116
- **Otherwise file one issue**, following `issue-create` for the labels (`v2`,
119117
exactly one type label, the server's `server-<name>` scope label where one
120118
applies) and the board card, with one difference: **board it as `Incoming`,
121119
with no milestone.** Harvesting preserves a fix; it does not approve it. The
122120
issue then goes through triage's approval pass like any other inflow.
123121
The issue states the problem in its own words (not "see the PR"), links the PR
124-
as a prototype, and credits its author on a `Credit: @<login>` line.
122+
as a prototype, and credits its author.
125123
- **A duplicate group** gets one issue, linking every PR in the group.
126124

127125
### Security fixes

0 commit comments

Comments
 (0)