Sync API for GitHub and Azure DevOps to Kafka event queue
$ docker run --rm --net=host landoop/fast-data-dev
$ ./ngrok http 3001
Get ngrok https url and use it to configure Github and Azure Devops webhooks
$ npm install
$ npm run dev
- Register webhook for github repo, specify URL:
https://{ngrokaddress}/api/events/github
- Specify secret key (and store it at
config/index.js
GITHUB_SECRET) - Select following events: Issue comments and Issues
- Select active checkbox
Done
- Change team process to Agile
- Configure Service Hook -> Webhook -> Work item created
https://{ngrokaddress}/api/events/azure
- Specify username and password for basic auth
- Store username and password at
config/index.js
:
AZURE_USERNAME
AZURE_PASSWORD
Repeat 2 and 4 step for each event type:
workitem.updated
workitem.created
workitem.deleted
workitem.restored
workitem.updated
workitem.commented
Done
- Run container:
$ docker run --rm --net=host landoop/fast-data-dev
- Run tests:
$ npm run test