Skip to content

GeekHouseOkinawa/tosakin

Repository files navigation

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

About

尾ひれをつけて話す

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published