ghtrim

command module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ghtrim

Build Status

A GitHub Bot to automatically delete your fork's branches after a pull request has been merged. This is fork of ghb0t, that I modified to fit my needs.

NOTE: This will never delete a branch named "master" or "develop" AND will never delete a branch that associated with a PR you did not make. If the pull request is closed without merging, it will not delete it.

Why the name change?

I have too many github bots in my life, so I named this something a little more descriptive for my needs. Alas, it's a Github branch trimmer.

But why?

Cleanup stale branches is constantly on my todo list. So why not automate? Thanks to jessfraz for all the heavy-lifting. When I saw this blog post I thought, I can finally cross-off "clean stale branches" off my todo list.

Usage

$ ghtrim -h
ghtrim - v1.0.0
  -branches string
    	protected branches, comma seperated) (default "main, master, develop")
  -d	run in debug mode
  -interval string
    	check interval (ex. 5ms, 10s, 1m, 3h) (default "30s")
  -token string
    	GitHub API token
  -v	print version and exit (shorthand)
  -version
    	print version and exit

Build

Building from source requires go v1.9+.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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