An open API service indexing awesome lists of open source software.

https://github.com/oliverswitzer/circle-ci-ifttt-integration

An API that sits between circle CI and IFTTT (If This Then That)
https://github.com/oliverswitzer/circle-ci-ifttt-integration

Last synced: about 2 months ago
JSON representation

An API that sits between circle CI and IFTTT (If This Then That)

Awesome Lists containing this project

README

        

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

Specify in your circle.yml:

```.yml
...
notify:
webhooks:
- url: https:///webhooks/circleci/receive
...
```

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

```
{
"payload": {
...
"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=
```

## Deploying

Simply run `git push heroku master`

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