• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kittoframework / kitto / 184
89%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2016 05:10AM UTC
Jobs 1
Files 16
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
184

Pull #25

travis-ci

web-flow
Add webhook support

Webhooks are enabled through the `/hooks` route. Building hooks, similar
to jobs, is as easy as putting a file in the `hooks/` directory in a
Kitto project. The Hook API is very simple and similar to the
`Plug.Route` DSL building routes:

```elixir
use Kitto.Hooks.DSL

hook :github do
  {:ok, body, _} = read_body conn
  commits = GitHub.parse_commits_from_hook(body)
  broadcast! :github_commits, %{commits: commits}
end
```

The hook above generates a route at `/hooks/github` listening on all
HTTP methods. Hooks include both the `conn` object that routes include
as well as `broadcast!/2` to broadcast events to dashboards.
Pull Request #25: Implements hooks support

175 of 211 relevant lines covered (82.94%)

8.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 184.1 22 Nov 2016 05:10AM UTC 0
82.94
Travis Job 184.1
Source Files on build 184
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #184
  • Pull Request #25
  • PR Base - master (#180)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc