From 0b4dcb0c106642b4598f40669f95b29b4abb92cf Mon Sep 17 00:00:00 2001
From: jdx <216188+jdx@users.noreply.github.com>
Date: Sun, 22 Mar 2026 11:24:46 -0500
Subject: [PATCH] ci: add communique to enhance release notes (#411)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Summary
- Add communique tool to mise.toml
- Add `enhance-release` job to release workflow that runs after release
creation to generate AI-enhanced release notes
## Test plan
- [ ] Verify next release triggers the enhance-release job
- [ ] Confirm ANTHROPIC_API_KEY secret is configured in repo settings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---
> [!NOTE]
> **Medium Risk**
> Adds a new post-release GitHub Actions job that uses an external AI
API and an elevated token to modify GitHub release notes; failures or
misconfigured secrets can break the release workflow and token scope
matters.
>
> **Overview**
> After the `release` job completes, the workflow now runs a new
`enhance-release` job that computes the tag from `package.json` and
calls `communique generate ... --github-release` to update the GitHub
release notes.
>
> The PR also adds `communique` to `mise.toml` so the tool is available
in CI, and wires in `ANTHROPIC_API_KEY` plus a dedicated
`RELEASE_PLZ_GITHUB_TOKEN` for the release-note update step.
>
> Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d2335f661ce2aa7eabf26c542879d9f4ab234ce7. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).
---------
Co-authored-by: Claude Opus 4.6 (1M context)
---
.github/workflows/release.yml | 18 +++++++++++++++++-
mise.toml | 1 +
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e7c48fe..7696689 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -25,4 +25,20 @@ jobs:
- name: Release
run: ./scripts/postversion.sh
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ enhance-release:
+ needs: [release]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ - uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2
+ - name: Enhance release notes with communique
+ run: |
+ TAG_NAME="v$(jq -r .version package.json)"
+ communique generate "$TAG_NAME" --github-release
+ env:
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/mise.toml b/mise.toml
index 4424867..576926a 100644
--- a/mise.toml
+++ b/mise.toml
@@ -10,3 +10,4 @@ tasks.release-plz = "./scripts/release-plz.sh"
node = '24'
git-cliff = 'latest'
gh = 'latest'
+communique = 'latest'