|author||Jacob Bednarz <email@example.com>||Fri Oct 26 04:02:58 2018 +1100|
|committer||Jess Frazelle <firstname.lastname@example.org>||Thu Oct 25 10:02:58 2018 -0700|
Don't delete the default branch (#11) Not everyone uses `master` as the default branch so instead of guarding against deleting `master`, we can instead guard `Repository.DefaultBranch` which will handle what ever the project has defined as their mainline. Closes #7
A GitHub Bot to automatically delete your fork's branches after a pull request has been merged.
NOTE: This will never delete a branch named “master” AND will never delete a branch that is not owned by the current authenticated user. If the pull request is closed without merging, it will not delete it.
For installation instructions from binaries please visit the Releases Page.
$ go get github.com/genuinetools/ghb0t
$ ghb0t -h ghb0t - A GitHub Bot to automatically delete your fork's branches after a pull request has been merged. Usage: ghb0t <command> Flags: -d enable debug logging (default: false) -interval check interval (ex. 5ms, 10s, 1m, 3h) (default: 30s) -token GitHub API token (or env var GITHUB_TOKEN) -url Connect to a specific GitHub server, provide full API URL (ex. https://github.example.com/api/v3/) (default: <none>) Commands: version Show the version information.