Overview of discord-triage
mainThe discord-triage package is a gateway bot that automatically ingests Discord support messages into Linear Triage.
Core Workflow:
- Every new top-level message in a watched text channel or new post in a watched forum channel is converted into a Linear issue labeled
Source: Discord. - The bot opens a thread on the original Discord message containing a link to the newly created Linear issue.
- Enhancements: If
ANTHROPIC_API_KEYis provided, the bot uses Claude Sonnet to rewrite the ticket into a standard format (improving title, Context, Artifacts, and References) while preserving the original report as a quote. It also mirrors message attachments to Linear uploads to prevent link expiration. - Webhook Support: If
LINEAR_WEBHOOK_SECRETis set, the bot listens at/linear-webhookto archive the corresponding Discord thread when an issue is closed in Linear.