Tosakin is an idobata generic webhook adapter for any webhooks.
** PLEASE DON'T USE THIS. **
This repository is not maintained.
use idobata/idobata-hooks instead.
$ git clone https://github.com/GeekHouseOkinawa/tosakin.git
$ cd tosakin
$ heroku create
$ git push heroku master
$ heroku run rake db:migrate
$ heroku config:add IDOBATA_HOOK_URL=YOUR_IDOBATA_HOOK_URL
- TODO: BitBucket
- TODO: Generic
- TODO: GitHub
- TODO: Heroku
- TODO: Jenkins
- TODO: New Relic
- TODO: Papertrail
- TODO: PivotalTracker
- TravisCI
- CircleCI
In your travis.yml
notifications:
webhooks:
- http://<YOUR_HEROKU_APP_NAME_HERE>.herokuapp.com/hook/
or
notifications:
webhooks:
- http://<YOUR_HEROKU_APP_NAME_HERE>.herokuapp.com/hook/<YOUR_IDOBATA_HOOK_API_TOKEN_HERE>
In your config/initializers/tosakin_travis_ci_custom_template.rb
TosakinTravisCi::TravisCiBuildFormatter.template = <<'TEMPLATE'
<%= label %> in build <a href="<%= travis_ci_build_url %>">#<%= number %></a>
TEMPLATE
In your circle.yml
notify:
webhooks:
- url: http://<YOUR_HEROKU_APP_NAME_HERE>.herokuapp.com/hook
or
notify:
webhooks:
- url: http://<YOUR_HEROKU_APP_NAME_HERE>.herokuapp.com/hook/<YOUR_IDOBATA_HOOK_API_TOKEN_HERE>
In your config/initializers/tosakin_circle_ci_custom_template.rb
TosakinCircleCi::CircleCiBuildFormatter.template = <<'TEMPLATE'
<%= label %> in build <a href="<%= build_url %>"><%= build_num %></a>
TEMPLATE