Skip to content

Instantly share code, notes, and snippets.

@Jonty
Created November 14, 2012 14:26
Show Gist options
  • Save Jonty/4072400 to your computer and use it in GitHub Desktop.
Save Jonty/4072400 to your computer and use it in GitHub Desktop.
Add an IRC announce hook to every repo in a Github organisation
from github import Github # https://github.com/jacquev6/PyGithub
g = Github("USER", "PASSWORD")
repos = g.get_organization('ORGNAME').get_repos()
for repo in repos:
repo.create_hook(
"irc",
{
'room': 'CHANNELNAME',
'ssl': '1',
'server': 'irc.freenode.net',
'nick': '',
'password': '',
'port': '7070',
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment