rajivrnair / upsource-slack-api-adapter

Simple adapter to transform Upsource's webhook to Slack's format.
Do What The F*ck You Want To Public License
13 stars 12 forks source link

upsource-slack-api-adapter

Transforms Upsource webhooks to Slack compatible requests

Upsource events currently supported

Requirements

Tested to run on NodeJS 6. Other versions may be supported.

Configuration

The Slack webhook end point needs to be provided in config.json in the following format:

{
  "slackWebhookUrl": "link-to-slack-webhook"
}

Save this file in the root directory of the project. See sample.config.json for an example.

The application runs on port 4000. Redirect Upsource webhook to this address.

Upsource webhook configuration

Screenshot

you can ommit ?channel=(.*) parameter, in which case the notification will be posted to the hook's default channel

Running the adapter

Copy sample.config.json to config.json and adjust webhook url, upsource user and password, then as usual:

Screenshot