Skip to content

christo4ferris/dco-check-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8734d8 · Aug 17, 2017

History

43 Commits
May 28, 2016
May 28, 2016
Oct 6, 2015
May 28, 2016
May 28, 2016
Oct 7, 2015
Aug 17, 2017
Feb 8, 2017
Feb 6, 2017
Feb 6, 2017
May 28, 2016
May 28, 2016

Repository files navigation

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.

dco-check-bot

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.

Contributing

Pull requests welcome. Please see contribution guidelines.

Installation

  1. Create a config.js using the config.js.sample as a template.
  2. Choose a unique value for the webhook.secret, you'll also need to create an auth token for the auth.secret
  3. Modify the manifest.yml, chosing a matching host and name for the deployed webhook bot.
  4. Deploy to cloud foundry with cf push
  5. Issue a test event by using the GitHub web UI

Adding dco-bot to a repository

  1. Open your GitHub repository's Settings dialog
  2. Click on "Webhooks and services" in left-hand margin
  3. Click "Add webhook" button
  4. Set the URL to the value of the bot's hostname followed by /webhook (eg. http://mybot.mybluemix.net/webhook)
  5. Set the value of the secret to the secret value in the config.js of the deployed bot
  6. Select 'Let me select individual events.' and select the "Pull request" checkbox
  7. Create the webhook
  8. Test by sending a pull request