Skip to content

rnalexander/drill-sergeant

 
 

Repository files navigation

Drill Sergeant

Build Status

Keep track and get notified when github pull requests become stale.This is particularly useful for teams utilizing the github flow. This will send a report to a specified email (or emails) of any pull requests that are over the specified stale time.

As of 0.1.0, Drill Sergeant can also be configured (with the -l, --label command) to label the PRs as Stale.

Screen shot

Install

npm install -g drill-sergeant

Run

This is intended to be run via a crontab or other scheduled task runner.

A typical command line run:

$ export GITHUB_TOKEN='<your token here>'
$ drillsergeant -e "youremail@address" -r "user/repository,user/repository2"

If you want it to label the PR as stale:

$ drillsergeant -l -r "user/repository"

Configuration

The environment variable GITHUB_TOKEN must be set with a valid github oauth token in order to read the pull requests. For attaching labels, the token needs to have write access to the repo being scanned.

Options

See drillsergeant -h for all available options.

About

Keep track and get notified when github pull requests become stale.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.9%
  • HTML 2.1%