Skip to content

ratherblue/xambassador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xambassador

Build Status Coverage Status

GitHub webhook written in Ruby

Usage

Xambassador is intended to be used with Sinatra.

  1. First install Xambassador with gem install xambassador

  2. Create a new Sinatra webapp and in your server.rb file add the following code:

require 'sinatra'
require 'json'

require 'xambassador/pull_request'

post '/event_handler' do
  case request.env['HTTP_X_GITHUB_EVENT']
  when 'pull_request'
    payload = JSON.parse(request.body.read)
    Xambassador::PullRequest.new(payload)
  end
end

About

Implements Renegade for Git Hooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages