varunvs / upsource-slack-api-adapter

Simple adapter to transform Upsource's webhook to Slack's format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upsource-slack-api-adapter

Transforms Upsource webhooks to Slack compatible requests

Upsource events currently supported

  • ReviewCreatedFeedEventBean
  • ReviewStateChangedFeedEventBean
  • ParticipantStateChangedFeedEventBean
  • NewParticipantInReviewFeedEventBean
  • DiscussionFeedEventBean

Requirements

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

Running the adapter

Install npm dependencies by running npm install
Start the application by executing npm start

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

Configuration

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

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

Save this file in the root directory of the project.

About

Simple adapter to transform Upsource's webhook to Slack's format.

License:Do What The F*ck You Want To Public License


Languages

Language:JavaScript 100.0%