Phergie plugin for Listen for GitHub webhooks, announce events on IRC.
Phergie plugin for GitHub webhooks, listen for events and announce them on IRC.
This plugin listens for incoming webhooks from GitHub, and announces events on IRC.
These events are not just triggered on push, but also on issue updates, pull requests, comments and more, you can even get status updates from jenkins/travis-ci builds and changes to the wiki.
Check out Event Type & Payloads in the GitHub API documentation for detailed information about every single event.
The plugin listens for incoming hooks on port 8080 (configurable), it then emits an event when it receives one. The standard event handler then acts upon that event, and announces the event on IRC.
See Phergie documentation for more information on installing and enabling plugins.
Hook name corresponds to webhook request path.
return [ // ... connection info goes here // Plugin configuration 'plugins' => [ // GitHubHooks configuration new \Fikt\Phergie\Irc\Plugin\React\GitHubHooks\Plugin([ 'channels' => ['#some-channel'], // Channel list, broadcast events to these channels 'events' => ['*'], // Events to broadcast, '*' for all events. 'secret' => 'My super secret shared key', // Optional (but recommended) secret key, used to verify the message is actually from GitHub /** * Array of webhooks, key corresponds to the webhook request path */ 'hooks' => [ 'githubhooks' => , // Use global configuration 'fikt' => [ 'channels' => ['#some-private-channel'], // Override global configuration 'secret' => 'My other super secret key', // Override global configuration ], ], ]), ], ];
To run the unit test suite do
Released under the BSD License. See