Skip to content

riichi/trello-to-discord-webhook-service

Repository files navigation

Trello → Discord webhook service

Rust Build Status Docker Build Status MIT licensed

Setting up

Preliminaries

  1. Set up a Trello Power-up at https://trello.com/power-ups/admin; keep the API key and secret, also authorize the power-up to get the API token (click Token next to the API key field in power-up settings)
  2. Set up a Discord webhook at a channel of choice, keep the URL

Configuration

First, copy an example config file to config.toml:

cp config.example.toml config.toml

Then populate trello.key, trello.secret, trello.token, and discord.url entries with values from the above section. Set webhook.url to your webhook's URL.

To verify that the Trello configuration is correct, call e.g.

cargo run get-boards

– a list of available boards should be printed.

ℹ️ Settings can be also overridden with environment variables, e.g. exporting WEBHOOK_PORT=8080 will cause the service to listen on port 8080 regardless of config.toml's contents.

Deploy the webhook

We have to do this before actually registering the webhook since Trello does some HTTP requests upon webhook creation to verify that the service is working. The service has to be running and be available under webhook.url.

Create webhook

First, get the ID of the board from the output of

cargo run get-boards

. Then create the webhook:

cargo run create-webhook --description "Your webhook" --board-id "<BOARD ID>"

The service should start reporting the events.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages