NOTE: GitHub now has a more formal approach to integrating a DCO status check on a PR. I strongly recommend that you use that integration, instead.
A simple webhook that checks for valid DCO1.1 sign-off in a pull request.
Note: if you wish to add a repository to the dco-bot already deployed, contact me for the secret key.
Pull requests welcome. Please see contribution guidelines.
- Create a config.js using the config.js.sample as a template.
- Choose a unique value for the webhook.secret, you'll also need to create an auth token for the auth.secret
- Modify the manifest.yml, chosing a matching host and name for the deployed webhook bot.
- Deploy to cloud foundry with
cf push
- Issue a test event by using the GitHub web UI
- Open your GitHub repository's Settings dialog
- Click on "Webhooks and services" in left-hand margin
- Click "Add webhook" button
- Set the URL to the value of the bot's hostname followed by /webhook (eg. http://mybot.mybluemix.net/webhook)
- Set the value of the secret to the secret value in the config.js of the deployed bot
- Select 'Let me select individual events.' and select the "Pull request" checkbox
- Create the webhook
- Test by sending a pull request