A Product Delivery CLI toolbox of awesomeness
Перейти к файлу
Benson Wong f70a418c2e update vendored dependencies 2018-02-05 11:08:23 -08:00
command/repo Update pointer references to new accessor functions github lib 2018-02-05 11:07:21 -08:00
scripts add shellscript to check all dd repos 2018-01-09 14:11:55 -08:00
.gitignore first commit 2017-12-08 15:55:31 -08:00
Gopkg.lock update vendored dependencies 2018-02-05 11:08:23 -08:00
Gopkg.toml first commit 2017-12-08 15:55:31 -08:00
LICENSE Initial commit 2017-12-08 10:28:07 -08:00
README.md update install instructions 2018-01-29 15:18:26 -08:00
cli.go first commit 2017-12-08 15:55:31 -08:00

README.md

pd-cli

A Product Delivery CLI toolbox of awesomeness

Install

Install dep

go get github.com/mozilla/pd-cli
cd $GOPATH/src/github.com/mozilla/pd-cli
dep ensure && go install .
pd-cli -h

Github Access

The pd-cli requires a Github access token to perform most of its commands.

  • Create a GH Personal Access Token
  • Give the token all repo permissions
  • Set the token in the environment variable GH_ACCESS_TOKEN

Usage

  • Print help:
    • pd-cli help
    • pd-cli repo help
    • pd-cli create-milestone help
  • Check a repo (these are the same):
    • pd-cli repo check all github.com/mozilla/pd-cli
    • pd-cli repo check all mozilla/pd-cli
  • Specific checks:
    • pd-cli repo check help -- prints help
    • pd-cli repo check topic -- checks for Product Delivery repo topics
    • pd-cli repo check labels -- verifies Product Delivery labels are correct
    • pd-cli repo check unassigned -- checks all P1 issues are assigned to somebody
    • pd-cli repo check unlabled -- finds issues that do not have a label
    • pd-cli repo check milestones -- verifies milestones have a project to track them
  • Initializing a repo:
    • pd-cli repo init mozilla/pd-cli -- creates labels and a "Version 1.0" milestone and project
    • pd-cli repo create-milestone mozilla/pd-cli -m "Version 2.0" - creates a new milestone and project