Version: v0.0.0-...-6828a51 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 15 Imported by: 0


setuphooks is a commandline tool to set up github webhooks on repositories in bulk.

You can use it to add or remove a webhook destination to all of your personal repositories, repositories in any specific org you have access to, or individual repositories.

Hooks can be specified statically, or with a pattern (as I have different individual hooks for gitmirror for every repo, but they're all built roughly the same way).


This tool is written in go. To install it (assuming you have your go environment configured properly):

go get


./setuphooks/setuphooks.mac [opts] template

  -T=false: Test all hooks
  -d=false: Delete, instead of adding a hook.
  -events="push": Comma separated list of events
  -n=false: If true, don't make any hook changes
  -org="": Organization to check
  -pass="": Your github password
  -repo="": Specific repo (default: all)
  -t=false: Test hooks when creating them
  -user="": Your github username
  -v=false: Print more stuff

Template parameters:
  {{.FullName}}     - full name of repo (e.g. dustin/gitmirror)
  {{.Id}}           - numeric ID of repo
  {{.Language}}     - repository language (if detected)
  {{.Name}}         - short name of repo (e.g. gitmirror)
  {{.Owner.Id}}     - github numeric id of repo owner
  {{.Owner.Login}}  - github username of repo owner

Example templates:{{.FullName}}.git{{.Owner.Login}}/{{.Language}}/{{.Name}}.git{{.Name}}.git


The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL