Skip to content

brycied00d/GitHub-Multihook-Enable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Multihook Enabler

Motivation

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.

Pushover

Syntax: php pushover.php github_username github_password pushover_apikey [pushover_device]
It's pretty self-explanatory... Even has useful output. And help!

Email

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)

Jabber

Syntax: php jabber.php github_username github_password jabber_address
It's pretty self-explanatory... Even has useful output. And help!

IRC

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.

Delete

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.

TODO

  • 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 and References

Thanks to Pushover.net
This makes great use of GitHub's v3 API

About

Apply/enable a GitHub service hook to all of your repos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages