feat(changelog): BitRouter-refined drafts + multi-channel announce#29
Open
SPIKESPIGEL404 wants to merge 1 commit into
Open
feat(changelog): BitRouter-refined drafts + multi-channel announce#29SPIKESPIGEL404 wants to merge 1 commit into
SPIKESPIGEL404 wants to merge 1 commit into
Conversation
Extend the existing changelog sync into the refine → gate → publish loop for both BitRouter (OSS) and BitRouter Cloud. - sync-changelog.mjs: optional BitRouter refine pass (dogfood via api.bitrouter.ai) turns raw git-cliff bullets into benefit-oriented prose + a tighter title/description. Falls back to the deterministic draft when BITROUTER_API_KEY is absent, so nothing breaks without a key. Adds a `cloud` product path (inline body, cloud-<slug>.mdx) so the private repo is never fetched here. - source.config.ts: changelog frontmatter gains optional `product` (oss|cloud). - sync-changelog.yml: pass product/body/refine-key through from the dispatch. - announce-channels.mjs + announce-channels.yml (new): on a merged changelog entry, fan out to Discord / X (xurl) / Resend, tiered by version (alpha/patch → Discord only; x.y.0 → all). Per-channel copy is optionally spun by BitRouter, else derived deterministically. Every channel skips gracefully when unconfigured; entries are announced once (announced/<slug> tag) and a backfill age-guard prevents old-release spam. The review gate is unchanged: the changelog/sync PR. The docs page + RSS/Atom feed still publish via the site rebuild on merge. 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.
What
Extends the existing changelog sync into the full refine → gate → publish loop for both BitRouter (OSS) and BitRouter Cloud, per the two-repo design (product repos just dispatch; all refinement/marketing lives here).
Changes
scripts/sync-changelog.mjscloudproduct path (inline body,cloud-<slug>.mdx).source.config.tsproduct: oss | cloud..github/workflows/sync-changelog.ymlproduct/ inlinebody/BITROUTER_API_KEYfrom the dispatch.scripts/announce-channels.mjs(new).github/workflows/announce-channels.yml(new)content/changelog/**; once-only viaannounced/<slug>tags.Tiering:
*-alpha/beta/rc*& patches → Discord only;x.y.0→ Discord + X + email.Safety
BITROUTER_API_KEY→ the existing deterministic draft; no channel secret → that channel is skipped (logged, non-fatal). Safe to merge before anything is wired.announced/<slug>tag); backfill merges older than 14d are skipped.changelog/syncPR) and docs/RSS publish are unchanged.Companion change (product repos)
Needs
bitrouter/bitrouter(andbitrouter-cloud) to fire the release dispatch so sync runs on release instead of the daily cron — a smallnotify-release.yml(already drafted on the bitrouter side). Cloud sendsproduct: cloud+ inlinebodysince this repo can't read the private repo.Secrets / vars to add here
Secrets:
BITROUTER_API_KEY(refine + channel copy),DISCORD_WEBHOOK_OSS,DISCORD_WEBHOOK_CLOUD,XURL_TOKENS,RESEND_API_KEYVariables:
SITE_URL,RESEND_AUDIENCE_OSS,RESEND_AUDIENCE_CLOUD,RESEND_FROMTested
node --check+ YAML parse on all files.v1.0.0-alpha.22→ valid.mdxwithproductfrontmatter.x.y.0cloud → all three; every channel skipped gracefully with no secrets; age-guard drops a 556d-old entry. All exit 0.Verify before enabling (couldn't test without live creds)
announce-channels.yml— pin to your version.RESEND_FROMdomain.🤖 Generated with Claude Code