Named after Pepper Potts. Set all your GitHub repos master branches to be protected.

Clone this repo:

Branches

  1. 5fd8000 Merge pull request #3 from cblecker/nouser by Jess Frazelle · 4 months ago master
  2. 2a5ac38 Add flag to not include your current user by Christoph Blecker · 4 months ago
  3. 3e0bb7c Merge pull request #2 from cblecker/gh-ent-support by Jess Frazelle · 4 months ago
  4. 400de0c Add flag/support for GitHub Enterprise by Christoph Blecker · 4 months ago
  5. 192f795 travis go versions by Jess Frazelle · 7 months ago

pepper

Travis CI

Named after Pepper Potts. Set all your GitHub repos master branches to be protected.

You can set which orgs to include and use --dry-run to see the changes before they are actually made. Your user is automatically added to the repositories it will consider.

Also see jessfraz/audit for checking what collaborators, hooks, deploy keys, and protected branched you have added on all your GitHub repositories.

Usage

$ pepper -h
pepper - v0.1.0
  -d    run in debug mode
  -dry-run
        do not change branch settings just print the changes that would occur
  -nouser
        do not include your user
  -orgs value
        organizations to include
  -token string
        GitHub API token
  -url string
        GitHub Enterprise URL
  -v    print version and exit (shorthand)
  -version
        print version and exit
$ pepper --dry-run --token 12345 --orgs jessconf --orgs maintainerati
[OK] jessconf/jessconf:master is already protected
[OK] jessfraz/.vim:master is already protected
[OK] jessfraz/anonymail:master is already protected
[OK] jessfraz/apk-file:master is already protected
[UPDATE] jessfraz/certok:master will be changed to protected
...
[OK] jessfraz/weather:master is already protected
[OK] jessfraz/ykpiv:master is already protected
[OK] maintainerati/wontfix-cabal-site:master is already protected