Skip to content

ci: post PRs, issues and releases to Discord, like lume - #14

Merged
kordless merged 1 commit into
mainfrom
ci/discord-notify
Oct 14, 2026
Merged

kordless merged 1 commit into
mainfrom
ci/discord-notify

Conversation

@kordless

Copy link
Copy Markdown
Contributor

shivvr had the Discord secrets (DISCORD_BOT_TOKEN, DISCORD_CHANNEL_ID) but no workflow that used them. This ports lume's setup.

  • pr-notify.yml, copied from lume.
    • Posts when a PR is opened (not drafts), reopened, marked ready for review, or merged.
    • Uses pull_request_target but never checks out PR code, so PRs from forks can post safely.
    • The title only reaches the message through jq, and allowed_mentions blocks pings.
  • issue-notify.yml, copied from lume. Posts when an issue is opened, closed or reopened, and on new issue comments.
  • release.yml: a new Notify Discord job.
    • Runs after release, cpu-build and cpu-merge, even when they fail.
    • Posts one summary listing each job's result, linking to the Actions run.
    • Notes that the CUDA backend ships through deploy.sh.

All three skip quietly when the secrets are missing, and a failed post never turns a PR or release red. Optional extra secrets route the posts to other channels: DISCORD_PR_CHANNEL_ID for PRs, and DISCORD_ISSUE_CHANNEL_ID for issues (falling back to the PR channel, then the release channel).

How it will be checked: merging this PR should fire the first "merged" post. The release summary runs on the next tag (v0.6.0).

🤖 Generated with Claude Code

pr-notify.yml and issue-notify.yml are ported from lume. release.yml gains a Notify Discord job that posts one summary per release with every job's result. All three use the existing DISCORD_BOT_TOKEN and DISCORD_CHANNEL_ID secrets (optional DISCORD_PR_CHANNEL_ID and DISCORD_ISSUE_CHANNEL_ID), skip quietly without them, and never fail a PR or release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kordless
kordless merged commit 1ffa736 into main Oct 14, 2026
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