Skip to content

tool to audit branches on github or github enterprise repos

Notifications You must be signed in to change notification settings

slalompdx/march-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

march

Tool for quickly auditing branches in any GitHub or GHE repository you own for:

  • merged status: automate the process of deleting branches that have been merged
  • age: find and (optionally) cull branches that are older than --max_age days

Installation

$ gem install march-audit

Usage

To get help:

$ march -h

Sample usage:

$ march audit_merged slalompdx march-audit --no-interactive --destructive

The above command will automatically find and delete all branches that have been merged in to the default branch and all branches that haven't been updated in the last 2 weeks.

march is configured via environment variables, which may optionally be supplied in a file called .env in your working directory:

  • GITHUB_TOKEN
    • required, use a personal auth token
    • application only requires access to the repo group of permissions
  • GITHUB_API
    • optional, for use with on-prem GHE
  • VERIFY_SSL
    • optional, defaults to true

Development

Building

$ bundle install
$ bundle exec rake build

Links

About

tool to audit branches on github or github enterprise repos

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages