LoadRunner - GitHub Webhook Server and Event Simulator
LoadRunner is a multi-purpose utility for working with GitHub webhooks and statuses.
It provides these features:
- A webserver that responds to GitHub webhook events and can run any arbitrary script writtn in any language.
- A command line utility for testing your webhook server configuration by sending simulated events.
- A command line utility for sending status updates to pull requests.
Install
$ gem install loadrunner
Getting Started
# Create a sample hook handler
$ mkdir -p handlers/myrepo
$ echo "#\!/usr/bin/env bash" > handlers/myrepo/push
$ echo "echo hello > output.txt" >> handlers/myrepo/push
# Start the server
$ loadrunner server
# In another terminal, send a sample webhook event
$ loadrunner send localhost:3000 myrepo push master
# Verify the handler was executed
$ cat output.txt
For more options, see the documentation or run
$ loadrunner --help