Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 966 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 966 Bytes

A deployable middleware API that allows you to notify IFTTT when your Circle CI build fails

Specify in your circle.yml:

...
notify:
  webhooks:
    - url: https://<DEPLOYED_APP_URL>/webhooks/circleci/receive
...

Circle will send a a POST request to /webhooks/circleci/receive with a JSON body of:

{
  "payload": {
    ...
    "status": "<CIRCLE CI BUILD STATUS>"
    ...
  }
}

The app will translate the following statuses from Circle CI to IFTTT maker webhook events:

Circle CI IFTTT
success build_passing
failed build_failing

Development

Install dependencies:

bundle install

Start the app:

bundle exec ruby app.rb -p 3000

Create .env file, and add it to .gitignore:

IFTTT_KEY=<YOUR KEY>

Deploying

Simply run git push heroku master

Ensure that you've set IFTTT_KEY as an environment variable on Heroku.