-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement trello webhook request handler * add debug logs * use sha1 instead of sha256 * remove debug logs * parse webhook request body & parse archivedcard ID * define new route for trello webhooks * fetch archived card details via trello api * get rid of useless test * fix bug * polish * add debug logs * rename "(data) source" as "service" * introduce the new SERVICES envar for server mode * bump go version in CI & CD configs * add hack to skip envar checks during dev/testing * split the config package into 2 files * make post request to matching service(s) with archived card data * update readme * improve error handling
- Loading branch information
Showing
21 changed files
with
429 additions
and
288 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
APP_ENV=development | ||
PORT=XXXX | ||
USERNAME=user | ||
PASSWORD=pwd | ||
SERVICES=<label_id_1>@<endpoint_url_1>,<label_id_2>@<endpoint_url_2> | ||
TRELLO_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
TRELLO_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
TRELLO_BOARD_ID=xxxxxxxxxxxxxxxxxxxxxxxx | ||
TRELLO_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
TRELLO_WEBHOOK_CALLBACK_URL=<url> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.env | ||
*.json | ||
webhook.sh | ||
!config.example.json |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
module github.com/utkuufuk/entrello | ||
|
||
// +heroku goVersion go1.16 | ||
go 1.16 | ||
// +heroku goVersion go1.18 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/adlio/trello v1.8.0 | ||
github.com/google/go-cmp v0.5.4 | ||
github.com/pkg/errors v0.9.1 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
github.com/joho/godotenv v1.4.0 | ||
golang.org/x/exp v0.0.0-20220328175248-053ad81199eb | ||
) | ||
|
||
require github.com/pkg/errors v0.9.1 // indirect |
This file contains 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
Oops, something went wrong.