From 8d21a46b458c31c7acdc6f727f620aca34bab234 Mon Sep 17 00:00:00 2001 From: mignot Date: Wed, 25 Nov 2026 14:25:20 +0100 Subject: [PATCH 1/2] ci(release): activate Release Please Co-Authored-By: Claude Sonnet 5.5 --- .agents/generated-rules.json | 4 +-- .agents/rules/changelog-alignment.md | 12 ++++----- .agents/rules/documentation-toc.md | 2 +- .agents/rules/markdown-documentation.md | 4 +-- .claude/rules/documentation-toc.md | 2 +- .claude/rules/markdown-documentation.md | 4 +-- .github/workflows/release-tag.yml | 2 -- .release-please-manifest.json | 3 +++ CHANGELOG.md | 35 +------------------------ README.md | 4 +-- docs/versioning.md | 10 +++---- release-please-config.json | 16 +++++++++++ 12 files changed, 39 insertions(+), 59 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.agents/generated-rules.json b/.agents/generated-rules.json index c505ed1..1c39942 100644 --- a/.agents/generated-rules.json +++ b/.agents/generated-rules.json @@ -1,7 +1,7 @@ { "copier-template": "c297313eea2b16f7b713e0faf4a3672de05d6ea27a4ff374e659d3960d9784bc", - "documentation-toc": "c9a57aa3bd766ede36c80761786aa113bea025e92c3fc28a189c0b1bfc86f356", + "documentation-toc": "52734c4c63f46babf96aeae1260407add66dbec2d997f90a25ef01b7e1479127", "github-actions": "00e9df140a396df37cda1ecc47400e441e0715c44817a4f714360316de9259bd", - "markdown-documentation": "b83a62259c4f741f4e4ddb88faa403c4123dde19f9c2fd4078527ec26eafe8c2", + "markdown-documentation": "027f47636d9d510e6cbd5505f9339c1aeee6f41dd823c0b478d409dde1ae4538", "shell-scripts": "bdeed1f2724292989168f25949c8d83245f1436c24a3b82dab10429f60790d64" } diff --git a/.agents/rules/changelog-alignment.md b/.agents/rules/changelog-alignment.md index 480389c..2d7c46c 100644 --- a/.agents/rules/changelog-alignment.md +++ b/.agents/rules/changelog-alignment.md @@ -1,11 +1,11 @@ # Changelog alignment -When you **modify this repository** in a way that is **not purely trivial** (anything a maintainer or consumer would care about: behavior, public API of scripts, templates, CI, pins, baselines, docs that describe shipped behavior, or release/version flow): +`CHANGELOG.md` is **generated by Release Please** from conventional PR titles (see `docs/versioning.md`). Do not edit it by hand and do not add an `Unreleased` section or a table of contents to it. -1. **Update `CHANGELOG.md` in the same change** under **`## [Unreleased]`**, using the same categories as the rest of the file (`Added`, `Changed`, `Fixed`, etc.). Summarize what changed and why in plain language; link paths or script names when helpful. -2. **Keep it accurate**: If you touch **`STANDARDS_VERSION`**, template pins, **`template/`**, **`copier.yml`**, **`scripts/`** consumed by adopters, or **`.github/workflows`**, the changelog entry should reflect that so releases and migration notes stay truthful. -3. **Do not ship substantive edits without a matching `[Unreleased]` line** unless the user explicitly asked to skip the changelog (rare). +When you modify this repository in a way that is **not purely trivial** (behavior, public API of scripts, templates, CI, pins, baselines, docs that describe shipped behavior, or release flow): -**Exempt (no changelog line required):** typo-only fixes in comments, formatting-only edits with no semantic change, or purely mechanical refactors explicitly scoped as “no changelog” by the user. +1. **Write the PR title as the changelog entry**: `type(scope): summary` in plain language. `feat:` and `fix:` open a release; `ci:`, `docs:`, `chore:` and similar do not, and `!` marks a breaking change. +2. **Describe migration impact in the PR description** when a template, `copier.yml`, a reusable workflow input or a pin changes, and in `docs/migration-guide.md` when adopters must act. +3. **Never bump `STANDARDS_VERSION`, marked pins, tags or releases by hand**; the Release Please PR owns them. -If you are **aligning another repo** to these standards, that consumer’s **`CHANGELOG.md`** (or their agreed release notes) should be updated there—not only the standards repo—when your work there is user-visible. +If you are **aligning another repo** to these standards, update that consumer's own release notes when your work there is user-visible. diff --git a/.agents/rules/documentation-toc.md b/.agents/rules/documentation-toc.md index 4d8cd4e..9820251 100644 --- a/.agents/rules/documentation-toc.md +++ b/.agents/rules/documentation-toc.md @@ -1,6 +1,6 @@ # Documentation: aligned table of contents -When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md`, etc.): +When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, etc.; not the generated `CHANGELOG.md`): 1. **Include a TOC** near the top: after the H1 title and any one-line blurb, add `## Table of Contents` before the first real content section. 2. **Keep it aligned**: Every `##` section in the file appears as a TOC bullet **in the same order**, with an anchor link. Skip only headings that are not meant to be navigated (never link `## Table of Contents` itself). diff --git a/.agents/rules/markdown-documentation.md b/.agents/rules/markdown-documentation.md index 23e749c..3f3523b 100644 --- a/.agents/rules/markdown-documentation.md +++ b/.agents/rules/markdown-documentation.md @@ -7,7 +7,7 @@ ## Table of contents -For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it uses multiple `##` sections), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**: +For substantial Markdown (`README.md`, `docs/**/*.md`), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**: 1. Add **`## Table of Contents`** after the title (and short intro if present). 2. List every navigable **`##`** section in order with GitHub-style anchor links; update the TOC in the **same change** as heading edits. @@ -15,7 +15,7 @@ For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it us ## Changelog and releases -- **`CHANGELOG.md`** entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**. +- **`CHANGELOG.md`** is generated by Release Please and carries no table of contents; do not edit it by hand. Release entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**. ## Tone and scope diff --git a/.claude/rules/documentation-toc.md b/.claude/rules/documentation-toc.md index ce694fe..34ccf7e 100644 --- a/.claude/rules/documentation-toc.md +++ b/.claude/rules/documentation-toc.md @@ -5,7 +5,7 @@ paths: # Documentation: aligned table of contents -When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md`, etc.): +When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, etc.; not the generated `CHANGELOG.md`): 1. **Include a TOC** near the top: after the H1 title and any one-line blurb, add `## Table of Contents` before the first real content section. 2. **Keep it aligned**: Every `##` section in the file appears as a TOC bullet **in the same order**, with an anchor link. Skip only headings that are not meant to be navigated (never link `## Table of Contents` itself). diff --git a/.claude/rules/markdown-documentation.md b/.claude/rules/markdown-documentation.md index 5dc625e..0b867fc 100644 --- a/.claude/rules/markdown-documentation.md +++ b/.claude/rules/markdown-documentation.md @@ -14,7 +14,7 @@ paths: ## Table of contents -For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it uses multiple `##` sections), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**: +For substantial Markdown (`README.md`, `docs/**/*.md`), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**: 1. Add **`## Table of Contents`** after the title (and short intro if present). 2. List every navigable **`##`** section in order with GitHub-style anchor links; update the TOC in the **same change** as heading edits. @@ -22,7 +22,7 @@ For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it us ## Changelog and releases -- **`CHANGELOG.md`** entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**. +- **`CHANGELOG.md`** is generated by Release Please and carries no table of contents; do not edit it by hand. Release entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**. ## Tone and scope diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 649a215..fc6ec7a 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -24,8 +24,6 @@ jobs: release-please: needs: release-tag - # Pushes skip this job until the App and main ruleset are configured. - if: github.event_name == 'workflow_dispatch' uses: BehindTheMusicTree/github-workflows/.github/workflows/release-please.yml@8b10f1dfcb88a245e4e4256e61164b49e595faea # v6.5.0 with: app-id: ${{ vars.RELEASE_PR_APP_ID }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..684bdbe --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "5.2.1" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index d3a95f2..972e46b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,40 +2,7 @@ All notable changes to this standards repository will be documented in this file. -The format is inspired by Keep a Changelog and follows semantic-style versioning for standards releases. - -## Table of Contents - -- [Unreleased](#unreleased) -- [5.2.1 - 2026-11-25](#521---2026-11-25) -- [5.2.0 - 2026-10-31](#520---2026-10-31) -- [5.1.0 - 2026-09-24](#510---2026-09-24) -- [5.0.0 - 2026-09-24](#500---2026-09-24) -- [4.3.2 - 2026-04-13](#432---2026-04-13) -- [4.3.1 - 2026-04-12](#431---2026-04-12) -- [4.3.0 - 2026-04-12](#430---2026-04-12) -- [4.2.0 - 2026-04-12](#420---2026-04-12) -- [4.1.1 - 2026-04-12](#411---2026-04-12) -- [4.1.0 - 2026-04-11](#410---2026-04-11) -- [4.0.0 - 2026-04-11](#400---2026-04-11) -- [3.1.0 - 2026-04-11](#310---2026-04-11) -- [3.0.1 - 2026-04-13](#301---2026-04-13) -- [3.0.0 - 2026-04-12](#300---2026-04-12) -- [2.3.0 - 2026-04-11](#230---2026-04-11) -- [2.2.0 - 2026-04-10](#220---2026-04-10) -- [2.1.0 - 2026-04-09](#210---2026-04-09) -- [2.0.0 - 2026-04-09](#200---2026-04-09) -- [1.0.0 - 2026-04-09](#100---2026-04-09) - -## [Unreleased] - -### Changed - -- Prepare the move to Release Please: mark the seven standards pins with `x-release-please-version`, add the `pr-title` check and a suspended `release-please` job, and check that marked pins match `STANDARDS_VERSION`. - -### Removed - -- The manual bump path (`scripts/standards_release_bump.sh`, `scripts/finalize_standards_changelog.py`, `scripts/publish_github_release.py` and `.bumpversion.toml`) and the `.bumpversion.toml` mirror in the release policy. CI already owns tagging and publication. +Release Please generates versioned entries from conventional PR titles; earlier entries were written by hand. ## [5.2.1] - 2026-11-25 diff --git a/README.md b/README.md index 70bd7cc..e639a4b 100644 --- a/README.md +++ b/README.md @@ -93,9 +93,7 @@ See [docs/reusable-workflows.md](docs/reusable-workflows.md) for caller examples ## Releases -Versions are **SemVer** (`v1.2.3` tags, `STANDARDS_VERSION` without `v`). Maintainers prepare version and **`CHANGELOG.md`** changes through a PR to `main`; CI creates **`vX.Y.Z`** and publishes a **GitHub Release** with the same notes. Consumers pin callable workflows to that tag (or a commit SHA), not to `main` long term. - -After a version change merges into `main`, [`.github/workflows/release-tag.yml`](.github/workflows/release-tag.yml) creates the SemVer tag and publishes the GitHub Release from the matching **`CHANGELOG.md`** section. Publication is owned by CI; Release Please will prepare version and changelog PRs from conventional PR titles once activated (see **[docs/versioning.md](docs/versioning.md)**). +Versions are **SemVer** (`v1.2.3` tags, `STANDARDS_VERSION` without `v`). [Release Please](https://github.com/googleapis/release-please) opens a release PR from conventional PR titles; merging it updates `STANDARDS_VERSION`, the marked pins and **`CHANGELOG.md`**, then CI creates **`vX.Y.Z`** and publishes the **GitHub Release**. Consumers pin callable workflows to that tag (or a commit SHA), not to `main` long term. See **[docs/versioning.md](docs/versioning.md)**. ## Status diff --git a/docs/versioning.md b/docs/versioning.md index a0a9a77..5eae224 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -46,13 +46,11 @@ Each GitHub Release (and matching `CHANGELOG.md` section) should make adoption s ## Releasing (maintainers) -`STANDARDS_VERSION` is the canonical version. Release Please will prepare releases from conventional PR titles once it is activated; until then, prepare a release by hand on a clean task branch created from current `main`: +`STANDARDS_VERSION` is the canonical version. Release Please (`release-please-config.json`, `.release-please-manifest.json`, job `release-please` in `.github/workflows/release-tag.yml`) maintains a release PR from conventional PR titles; never bump, tag or publish by hand. -1. Set `STANDARDS_VERSION` and every pin marked `x-release-please-version` to the same new version. `scripts/tests/test_release_version_sync.py` fails if a marked pin differs or a current-version pin lacks its marker. -2. Move release notes into the unique matching `## [X.Y.Z] - YYYY-MM-DD` changelog section, retaining an empty `Unreleased` section and updating the TOC. -3. Commit, open a pull request against `main`, and let CI create the tag and release after merge. Do not tag or publish locally. - -After merge, CI validates the version, the nonempty changelog section and main ancestry, then creates an annotated tag on that exact commit. The same workflow publishes the GitHub release from those notes. Rerun the failed workflow to recover; an existing release is retained. +1. Merge PRs titled `feat:`/`fix:` (and `!` for breaking changes); `ci:`, `docs:`, `chore:` and similar titles do not open a release. +2. Release Please updates `STANDARDS_VERSION`, every pin marked `x-release-please-version` and `CHANGELOG.md` in its release PR. `scripts/tests/test_release_version_sync.py` fails if a marked pin differs or a current-version pin lacks its marker. +3. Merge the release PR; CI creates the tag and publishes the GitHub Release from the generated notes. Rerun a failed workflow to recover; an existing release is retained. **Version markers:** the Release Please Generic updater replaces the first SemVer of each marked line. Mark only the line holding the standards pin: `` at the end of a prose line, ` # x-release-please-version` on a pin or `copier copy --vcs-ref` line in a copyable YAML or shell example, and `{# x-release-please-version #}` directly after the template pin so the rendered workflow carries no comment or trailing space. diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..86afadc --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "simple", + "include-component-in-tag": false, + "version-file": "STANDARDS_VERSION", + "extra-files": [ + "README.md", + "docs/migration-guide.md", + "docs/reusable-workflows.md", + "template/.github/workflows/{% if reusable_lint %}lint.yml{% endif %}.jinja" + ] + } + } +} From d995064e7c345b079b25600d8f2f8ae47c559aab Mon Sep 17 00:00:00 2001 From: mignot Date: Wed, 25 Nov 2026 14:26:17 +0100 Subject: [PATCH 2/2] ci(release): align github-actions rule with active Release Please Co-Authored-By: Claude Sonnet 5.5 --- .agents/generated-rules.json | 2 +- .agents/rules/github-actions.md | 2 +- .claude/rules/github-actions.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.agents/generated-rules.json b/.agents/generated-rules.json index 1c39942..b23dbbb 100644 --- a/.agents/generated-rules.json +++ b/.agents/generated-rules.json @@ -1,7 +1,7 @@ { "copier-template": "c297313eea2b16f7b713e0faf4a3672de05d6ea27a4ff374e659d3960d9784bc", "documentation-toc": "52734c4c63f46babf96aeae1260407add66dbec2d997f90a25ef01b7e1479127", - "github-actions": "00e9df140a396df37cda1ecc47400e441e0715c44817a4f714360316de9259bd", + "github-actions": "5b7aa1678f3d3798125fb1203a68a39d2122ff2e4f655df17d4e8db621a5a684", "markdown-documentation": "027f47636d9d510e6cbd5505f9339c1aeee6f41dd823c0b478d409dde1ae4538", "shell-scripts": "bdeed1f2724292989168f25949c8d83245f1436c24a3b82dab10429f60790d64" } diff --git a/.agents/rules/github-actions.md b/.agents/rules/github-actions.md index 9ea4b70..3905c71 100644 --- a/.agents/rules/github-actions.md +++ b/.agents/rules/github-actions.md @@ -3,7 +3,7 @@ ## Callable workflows (this repository) - Files under **`.github/workflows/`** that define **`on: workflow_call`** are **reusable entry points**. This repo uses the **`reusable-` filename prefix** as an org convention for discoverability (see `docs/reusable-workflows.md`). Renaming a published reusable file is a **breaking change** for every consumer `uses:` path. -- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job stays suspended until the repository is enrolled for Release Please. See **`docs/versioning.md`**. +- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job opens and maintains the release PR from conventional PR titles. See **`docs/versioning.md`**. - **`reusable-pre-commit.yml`** should remain a thin, predictable pipeline: checkout → setup Python (with pip cache) → optional pre-install → install → `pre-commit run --all-files` (or overridden command). Avoid surprising side effects in defaults; document new **`inputs`** in `docs/reusable-workflows.md` and **`CHANGELOG.md`** when behavior or contract changes. ## Template caller workflows (`template/.github/workflows/`) diff --git a/.claude/rules/github-actions.md b/.claude/rules/github-actions.md index ae8dc1b..9c32913 100644 --- a/.claude/rules/github-actions.md +++ b/.claude/rules/github-actions.md @@ -10,7 +10,7 @@ paths: ## Callable workflows (this repository) - Files under **`.github/workflows/`** that define **`on: workflow_call`** are **reusable entry points**. This repo uses the **`reusable-` filename prefix** as an org convention for discoverability (see `docs/reusable-workflows.md`). Renaming a published reusable file is a **breaking change** for every consumer `uses:` path. -- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job stays suspended until the repository is enrolled for Release Please. See **`docs/versioning.md`**. +- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job opens and maintains the release PR from conventional PR titles. See **`docs/versioning.md`**. - **`reusable-pre-commit.yml`** should remain a thin, predictable pipeline: checkout → setup Python (with pip cache) → optional pre-install → install → `pre-commit run --all-files` (or overridden command). Avoid surprising side effects in defaults; document new **`inputs`** in `docs/reusable-workflows.md` and **`CHANGELOG.md`** when behavior or contract changes. ## Template caller workflows (`template/.github/workflows/`)