Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save steadfasterX/5e76e03ef66f7c71d435470ea21bd906 to your computer and use it in GitHub Desktop.
Save steadfasterX/5e76e03ef66f7c71d435470ea21bd906 to your computer and use it in GitHub Desktop.
github-irc-issue-notifications
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }"
@steadfasterX
Copy link
Author

YOURUSER = your github username (you will be prompted for a password)
ORG = the organization name
REPO = the name of the repository

  1. Fetch the current settings plus the required IRC hook ID with the first cmd which is required for the next step
  2. Write your new settings with the second cmd

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