Adds service hooks and removes service hooks that have an error status.

Options

namedescriptionrequiredchoices
user Github username. true
oauthkey The oauth key provided by github. It can be found/generated on github under "Edit Your Profile" >> "Applications" >> "Personal Access Tokens" true
repo This is the API url for the repository you want to manage hooks for. It should be in the form of: https://api.github.com/repos/user:/repo:. Note this is different than the normal repo url. true
hookurl When creating a new hook, this is the url that you want github to post to. It is only required when creating a new hook.
action This tells the githooks module what you want it to do. true
  • create
  • cleanall
validate_certs If C(no), SSL certificates for the target repo will not be validated. This should only be used on personally controlled sites using self-signed certificates.
  • yes
  • no
content_type Content type to use for requests made to the webhook
  • json
  • form

Author

Phillip Gentry, CX Inc (@pcgentry)