Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.28 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.28 KB

Github Repo

Requirements

  • have nodejs installed.
  • have read access to all the repos and collaborators.
  • create a GH PAT Token (Artem: new PAT token does not seem to work, create classic token but be carefull with permissions)
  • set the env GH_TOKEN with the PAT Token's value
  • run npm install in the root of this project
export GH_TOKEN=[your token value]

Commands

  • Get all Repos
node . repos [repo name] --file [optional path to save to file] --all [optional includes all the repo members]

node . repos axleresearch --file "all-org.csv" --all
node . repos axleresearch --file "org.csv"
  • Get all Members
node . members [org name] [repo name] --file [optional path to save to file]

node . members axleresearch qhts --file "all-repo.csv"
  • Get all Outside collaborators
node . outside-collaborators [org name] --file [optional path to save to file]

node . outside-collaborators axleresearch  --file "outside.csv"
  • Get branch protection for all Repos
node . branch-protection [org name] --file [optional path to save to file] --verbose [optional verbose output, also -v]

node . branch-protection labshare --file "report.json"