- 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 theAPI key
field in power-up settings) - Set up a Discord webhook at a channel of choice, keep the URL
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 ofconfig.toml
's contents.
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
.
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.