ci: push changelog snapshot to the console on release - #38
Open
SPIKESPIGEL404 wants to merge 1 commit into
Open
Conversation
Add the producer side of the console's "What's New" pipeline: when curated changelog content lands on main, emit the changelog as JSON and POST it to the BitRouter console's ingest webhook so its What's New panel updates immediately. - scripts/emit-changelog-json.mjs: read content/changelog/*.mdx frontmatter (js-yaml, like generate-changelog-latest.mjs) into the same ChangelogItem shape the site uses (url = /changelog/<slug>). No build needed. - .github/workflows/notify-console-changelog.yml: on push to main touching content/changelog/** (or manual dispatch), build the payload, HMAC-sign it with CHANGELOG_WEBHOOK_SECRET, and POST to /api/webhooks/changelog. Requires the CHANGELOG_WEBHOOK_SECRET Actions secret (shared with the console) and an optional CONSOLE_URL variable (defaults to https://cloud.bitrouter.ai). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Producer side of the console's What's New pipeline (Step 4 of replacing UserJot).
When curated changelog content lands on
main, emit the changelog as JSON and POST it (HMAC-signed) to the BitRouter console's ingest webhook, so its What's New panel updates immediately instead of the console polling.What's here
scripts/emit-changelog-json.mjs— readscontent/changelog/*.mdxfrontmatter (js-yaml, same style asgenerate-changelog-latest.mjs) into the sameChangelogItemshape the site uses (url = /changelog/<slug>). No build step needed..github/workflows/notify-console-changelog.yml— on push tomaintouchingcontent/changelog/**(or manual dispatch): build the payload, HMAC-SHA256 sign it withCHANGELOG_WEBHOOK_SECRET, andPOST /api/webhooks/changelogon the console.Setup required before this does anything
CHANGELOG_WEBHOOK_SECRET— must equal the console's env value (openssl rand -hex 32, set identically in both).CONSOLE_URL— console origin (defaults tohttps://cloud.bitrouter.ai).Validation
opensslHMAC byte-for-byte matches the console'screateHmacverification, so signatures will be accepted.Console side (ingest webhook
/api/webhooks/changelog,changelog_itemstable, What's New panel + unread badge) is on the console branchclaude/userjot-feedback-whats-new-aebccb.🤖 Generated with Claude Code