Skip to content

Instantly share code, notes, and snippets.

@beddari
Forked from ELLIOTTCABLE/POST.sh
Last active August 29, 2015 14:11
Show Gist options
  • Save beddari/1c40b913a83801a4bf69 to your computer and use it in GitHub Desktop.
Save beddari/1c40b913a83801a4bf69 to your computer and use it in GitHub Desktop.
{
"name": "irc",
"active": true,
"events": [
"issues",
"issue_comment",
"fork",
"watch",
"push",
"create",
"delete",
"commit_comment",
"pull_request",
"pull_request_review_comment",
"deployment",
"deployment_status",
"gollum",
"member",
"public",
"release",
"status",
"team_add",
"watch"
],
"config": {
"server": "chat.freenode.net",
"port": "6667",
"room": "#CHANGEME",
"nick": "[GH]",
"ssl": "0",
"message_without_join": "1",
"no_colors": "0",
"long_url": "1",
"notice": "0"
}
}
#!/bin/bash
OTP=$1
owner=$2
repo=$3
user=CHANGEME
curl -H "X-GitHub-OTP: $OTP" -i -u $user -X POST https://api.github.com/repos/$owner/$repo/hooks --data @irc.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment