feat(webhooks): add Slack and Discord delivery format presets#243
Merged
Conversation
A webhook can now set format=slack or format=discord (default json) so it can target a Slack or Discord incoming webhook directly β the dispatcher renders each task event into Slack Block Kit or a Discord embed instead of raw JSON, no transform service needed. format is validated on create/update, declared on the webhooks schema, and the transformer is a pure function covered by unit tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the βοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Comment |
This was referenced Jun 16, 2026
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.
S2-01 / S2-03 (phase 1) β Slack & Discord webhook presets
Lets an outgoing webhook target a Slack or Discord incoming webhook directly, with no transform/middleware service.
formatfield on the webhook (jsondefault Β·slackΒ·discord), declared on the strictwebhooksschema, validated on create/update, and returned in the (masked) hook responses.{ text, blocks }(Block Kit: event + task key/name, status Β· priority Β· due context line){ embeds: [...] }(title + status/priority/due fields)formatForTarget) is a pure function inwebhookRules.js, covered by unit tests; the HMAC signature now covers exactly the bytes sent.Usage:
POST /api/v2/webhookswith{ name, url: <slack/discord incoming-webhook URL>, events, format: "slack" }.Verification
STORAGE_TYPEset; transformer output spot-checked.Note: this is backend-only (webhooks have no settings UI yet) β a webhook is configured via the API. A "Send to Slack/Discord" UI toggle can come with the webhooks settings page later.
π€ Generated with Claude Code