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)
- Host: GitHub
- URL: https://github.com/oliverswitzer/circle-ci-ifttt-integration
- Owner: oliverswitzer
- Created: 2017-05-05T20:48:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T17:35:26.000Z (about 8 years ago)
- Last Synced: 2025-02-15T20:24:10.956Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.