This project shows how can github-webhooks can be used - to notify in asana that task's PR was merged.
- add to all PRs link to asana task
- configure
.env
file:
GITHUB_WEBHOOKS_TOKEN = 'webhooks-secret'
GITHUB_TOKEN = 'github-personal-token'
ASANA_TOKEN = 'asana-token'
DEV_BRANCH = 'dev'
PROD_BRANCH = 'prod'
- run service
uvicorn bot.server:app
- configure repository webhooks to
{url}/hook
(whereurl
is url where service is running)
- build image
docker build -t asana_bot .
- create
.env
file - run
docker run --env-file .env -d --restart always --name asana_bot -p 8000:80 asana_bot