Skip to content

Instantly share code, notes, and snippets.

@jgable
Created December 15, 2013 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgable/7977952 to your computer and use it in GitHub Desktop.
Save jgable/7977952 to your computer and use it in GitHub Desktop.
Adding a webhook for Pull Requests to a GitHub Repo

Download and install the git-at-me module and run the wizard function.

npm install git-at-me 
echo "require('git-at-me').wizard();" >> git-wizard.js
node git-wizard.js
  1. Generate a token by selecting the Token option
  2. Enter your GitHub username
  3. Enter your GitHub password (this is not stored anywhere)
  4. If you have two-factor authentication enabled, enter the code sent to you
  5. Save the token as github-token.js in case you need it again
  6. Copy the generated token from the console when it is displayed
  7. Create the webhook with the token by selecting the Hook option
  8. Paste in the copied token from before when prompted for GitHub Token
  9. Enter the Github Repo to add the Hook to (e.g. jgable/git-at-me)
  10. Select the events you'd like to subscribe to (at least one)
  11. Enter the URL that GitHub should POST to when events happen

That should be it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment