A Github webhook handler for transitioning Jira issues. Listens on port 4567.
This is a work in progress.
Intended to be run as a docker app.
Pick a secret, let's call it YOUR_HOOK_SECRET
that you'll use as a means of verifying
the source of a hook invocation.
$ make package
$ docker run --rm -it \
-e RUST_LOG=info \
-e GITHUB_SECRET=YOUR_HOOK_SECRET \
-e GITHUB_TOKEN=GITHUB_OAUTH_ACCESS_TOKEN \
-e JIRA_HOST=YOUR_JIRA_HOST \
-e JIRA_USERNAME=YOUR_JIRA_BOT_USERNAME \
-e JIRA_PASSWORD=YOUR_JIRA_BOT_PASSWORD \
-e SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
-e SSL_CERT_DIR=/etc/ssl/certs \
meetup/jira-transit:0.1.{tag}
To configure this server you'll want to create a new webhook integration using the following steps.
- Visit
https://github.com/{owner}/{repo}/settings
- Select "Webhooks" tab
- Click the "Add webhook" tab
- Select
application/json
as the Content type hooks will be delivered as - Set your secret to the one you've chosen above
- Select event's your server should be notified about
Note:
This docker image is based on scatch
which doesn't contain ssl required
information about trusted authorizes. A ca-certificates.crt
is bundled directly
which is sourced from
Meetup 2016