Skip to content

ghtorrent/ghtorrent-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GHTorrent webhook

Minimal script to act as a webhook for GitHub projects. It accepts POST requests on port 4567, reads the JSON event, checks if it is already saved in MongoDB and posts the event on the queue for further processing.

It was written to help realtime monitoring of private repos, using exactly the same mechanism as GHTorrent does.

Installing and Running

Install bunder, checkout the repository and do bundle install

(sudo) gem install bundler
git clone git@github.com:ghtorrent/ghtorrent-webhook.git
(sudo) bundle install

Then, copy the file config.yaml.tmpl to config.yaml and edit it to point to your installation of RabbitMQ and MongoDB.

Then you can run the hook as follows:

CONFIG=config.yaml bundle exec bin/ght-webhook

the config file is either read from the environment or as the first command line argument.

About

A GitHub webhook that triggers GHTorrent into action

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages