I wrote this quick script NOT because I'm lazy, but because adding/enabling a service hook for 30+ repos (or even just a few) is really quite tedious.
My original motivation sprung from enabling Pushover notifications on all of my repos. As such, I wrote this just for Pushover. However, if I'm sufficiently motivated, I'll rewrite this in Python and add support for other (maybe all?) service hooks.
Syntax: php pushover.php github_username github_password pushover_apikey [pushover_device]
It's pretty self-explanatory... Even has useful output. And help!
Syntax: php email.php github_username github_password email_address [email_secret]
It's pretty self-explanatory... Even has useful output. And help!
The email_secret fills out the Approved header to automatically approve the message in a read-only or moderated mailing list.
By default, this does not send from your user (checkbox un-checked). If you want to enable this, edit the source (look for XXX)
Syntax: php jabber.php github_username github_password jabber_address
It's pretty self-explanatory... Even has useful output. And help!
Syntax: php irc.php github_username github_password irc_server irc_port irc_room irc_nick
It's pretty self-explanatory... Even has useful output. And help!
By default, SSL is off, message_without_join is off, no_colors is off, long_url is on, and notice is off.
Syntax: php delete.php github_username github_password hook_name
Should you need to delete a given hook from all of your repos, this is the script to do it.
- Rewrite in Python
- Make this more flexible, to support any and all GitHub service hooks (maybe with a GUI, with Q&A)
- Add the ability to overwrite (GitHub PATCH method) existing service hook configuration.
- Send an optional test notification after adding the notification.
Thanks to Pushover.net
This makes great use of GitHub's v3 API