Skip to content

feat(ci): post each new weekly digest to Slack and Discord - #7614

Draft
Tejashmakwana wants to merge 1 commit into
mainfrom
tejas/changelog-announce
Draft

Tejashmakwana wants to merge 1 commit into
mainfrom
tejas/changelog-announce

Conversation

@Tejashmakwana

Copy link
Copy Markdown
Contributor

What

A new week in docs/weekly-updates.mdx now posts itself. When the Monday digest merges to main, .github/workflows/changelog-announce.yml runs scripts/changelog-announce.ts, which reads the newest <Update> and posts:

  • Slack: the week label, the summary line, the top highlights, "Watch the video" and "Read the notes" links.
  • Discord: the video URL (so it plays inline) and an embed with the summary and highlights.

Why

Today the weekly video stops at the docs PR and is never posted anywhere. Auto-posting every release to the community is one of the Discord growth levers we agreed on (Nov 4).

How

  • Triggers on pushes to main that touch docs/weekly-updates.mdx, plus a manual run.
  • Reposts only when the first <Update> label changed against HEAD^, so fixing a typo in a week that already went out does not post again.
  • Each webhook is optional: a missing secret is skipped, so this is safe to merge before the secrets exist.
  • Highlights come from **1. Headline.** lines when the digest has a top-5 list, else the first five ## sections (today's format).
  • No new dependencies; runs with npx tsx@4, same action pins as the other workflows.

Needs from a repo admin: two secrets, CHANGELOG_SLACK_WEBHOOK_URL (for #changelog-whatsnew-releasenotes) and CHANGELOG_DISCORD_WEBHOOK_URL (Discord #changelog).

Related work

Refs #7453 (the Nov 2-9 digest the dry run below uses). A follow-up updates the changelog-video skill to the v2 look.

Test plan

  • Unit tests added: scripts/changelog-announce.test.ts (4 pass), registered in test:scripts
  • Dry run on main's real digest (npx tsx scripts/changelog-announce.ts): label "Week of November 2, 2026", the nov02-09 video, the summary and five highlights, in both payloads
  • oxfmt --check and oxlint clean on the changed files
  • After the secrets are added: workflow_dispatch once to see both posts land

🤖 Generated with Claude Code

When a new week lands in docs/weekly-updates.mdx on main, a workflow posts
its summary, top highlights, video and notes link to Slack and Discord.
Edits to a week that already went out don't repost. A missing webhook
secret is skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
const res = await fetch(url, {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify(payload),
@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 267 (base branch 267), smooth 92 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (8)

Unstable (1)

  • seqrepeat-none-center-r0-root-z100: tracking 0.05, pressJump 0, drop 0, reload 0, render 0.02, renderKey -, undo true, teleport true / tracking 0.05, pressJump 0, drop 0, reload 0, render 0.02, renderKey -, undo true, teleport true / tracking 0.05, pressJump 0, drop 0, reload 0, render 0.02, renderKey -, undo true, teleport true

This branch has not been deployed

No deployments
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.

2 participants