Skip to content

Latest commit

 

History

History
93 lines (73 loc) · 2.35 KB

README.md

File metadata and controls

93 lines (73 loc) · 2.35 KB

Tosakin

Build Status Build Status Coverage Status Code Climate Dependency Status

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.

Deploy to Heroku

$ 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

Supports

  • TODO: BitBucket
  • TODO: Generic
  • TODO: GitHub
  • TODO: Heroku
  • TODO: Jenkins
  • TODO: New Relic
  • TODO: Papertrail
  • TODO: PivotalTracker
  • TravisCI
  • CircleCI

TravisCI

image

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>

Customize template

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

CircleCI

image

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>

Customize template

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