https://github.com/genuinetools/ghb0t
A GitHub Bot to automatically delete your fork's branches after a pull request has been merged.
https://github.com/genuinetools/ghb0t
bot cli github tools
Last synced: 3 months ago
JSON representation
A GitHub Bot to automatically delete your fork's branches after a pull request has been merged.
- Host: GitHub
- URL: https://github.com/genuinetools/ghb0t
- Owner: genuinetools
- License: mit
- Created: 2016-08-12T08:45:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T20:11:49.000Z (almost 5 years ago)
- Last Synced: 2025-03-28T08:06:07.303Z (3 months ago)
- Topics: bot, cli, github, tools
- Language: Makefile
- Homepage:
- Size: 5.86 MB
- Stars: 287
- Watchers: 12
- Forks: 28
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghb0t
[](https://github.com/genuinetools/ghb0t/actions?query=workflow%3A%22make+all%22)
[](https://github.com/genuinetools/ghb0t/actions?query=workflow%3A%22make+image%22)
[](https://godoc.org/github.com/genuinetools/ghb0t)
[](https://github.com/genuinetools/ghb0t/releases)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.**Table of Contents**
- [Installation](#installation)
- [Binaries](#binaries)
- [Via Go](#via-go)
- [Usage](#usage)## Installation
#### Binaries
For installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/ghb0t/releases).
#### Via Go
```console
$ go get github.com/genuinetools/ghb0t
```## Usage
```console
$ ghb0t -h
ghb0t - A GitHub Bot to automatically delete your fork's branches after a pull request has been merged.Usage: ghb0t
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: )Commands:
version Show the version information.
```