Skip to content

ci: ask glassflow-docs to draft release notes on a version bump - #81

Merged
PabloPardoGarcia merged 2 commits into
mainfrom
pablo/docs-plugin-release-dispatch
Oct 28, 2026
Merged

PabloPardoGarcia merged 2 commits into
mainfrom
pablo/docs-plugin-release-dispatch

Conversation

@PabloPardoGarcia

@PabloPardoGarcia PabloPardoGarcia commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

When a plugin version goes live, ask glassflow-docs to draft the customer release notes for it. The docs side is glassflow/glassflow-docs#274: its release-notes-pr.yml reads this repo's CHANGELOG.md sections in the range, plus the commit log, and has Claude Code draft the entry into a rolling PR for human review.

What changes

New workflow .github/workflows/docs-release-notes.yml:

  • It runs on a push to main that touches .claude-plugin/plugin.json.
  • The plugin has no GitHub releases. A version goes live when its bump lands on main.
  • The authoritative version is .claude-plugin/plugin.json. CHANGELOG.md says so ("the version in .claude-plugin/plugin.json is what the marketplace installs"). .claude-plugin/marketplace.json, the Codex and Cursor manifests and pyproject.toml carry the same version, which tests/test_codex_plugin.py enforces. So the workflow watches that one file.
  • It compares the version at the push's base commit (github.event.before) with the one at github.sha:
    • It dispatches plugin-release with {version, previous_version, sha} only when the version went up.
    • An unchanged version, or a reverted bump, sends nothing.
    • A push with no readable base (a new branch, or a base that is gone) reads the previous version from the pushed commit's parent, ${SHA}^:.claude-plugin/plugin.json.
  • Checkout is pinned to the same SHA (v7.0.1) as semconv-vendored.yml.

Secret an admin must add

  • DOCS_DISPATCH_TOKEN in glassflow/rius-coding-agents: a fine-grained PAT (or GitHub App token) with Contents: read and write on glassflow/glassflow-docs, the same kind the SDK repos already use. GITHUB_TOKEN cannot dispatch to another repo. While it is unset, the workflow skips with a warning.

Validation

  • actionlint passes.
  • Ran the step script locally against real history, with curl stubbed:
    • 0.8.1 to 0.8.2 without a token: a warning, no dispatch.
    • 0.8.2 to 0.8.1 (a revert): skipped.
    • an unchanged version: skipped.
    • an all-zero base: reads 0.8.1 from the parent and dispatches 0.8.1 to 0.8.2.
    • 0.8.0 to 0.8.2 with a token: the payload is {"version": "0.8.2", "previous_version": "0.8.0", "sha": ...}.
  • On the docs side, the collector turned 0.8.0 to 0.8.2 into the 0.8.1 and 0.8.2 CHANGELOG sections, plus the commits since the 0.8.0 bump.

When a push to main raises the version in .claude-plugin/plugin.json, dispatch plugin-release with the version, the previous version and the commit. Skips while DOCS_DISPATCH_TOKEN is unset.
@PabloPardoGarcia
PabloPardoGarcia merged commit 9e084f5 into main Oct 28, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant