This is an implementation of a cloudflare worker in rust that can listen to linear webhook triggers and for any new comment send the same to discord.
Create a .dev.vars
file and fill with following details
DISCORD_WEBHOOK_URL= # webhook url for discord channel
LINEAR_API_KEY= # linear api key (used for fetching comment metadata like creator's name
cargo test
wrangler dev # or npx wrangler dev
wrangler publish # or npx wrangler publish
Relies on two environments to be preset (both worker secret and normal environments work)
DISCORD_WEBHOOK_URL= # webhook url for discord channel
LINEAR_API_KEY= # linear api key (used for fetching comment metadata like creator's name