Skip to content

GH CLI extension to pull statistics on repository metadata used in GitHub migrations

License

Notifications You must be signed in to change notification settings

mona-actions/gh-repo-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Repository Statistics

GitHub CLI extensions are repositories that provide additional gh commands, and this GitHub CLI extension can help you find information about your repositories in your organizations.

Prerequisites

You need to either export these environment variables

Environment Variable name Value
GITHUB_TOKEN GitHub Personal Access Token (PAT) with admin:org, user:all, and repo:all permissions
ORG_NAME Organization name to run script
GHE_URL GitHub URL or GHES URL without HTTP or HTTPS

Or the script will prompt you to put in the relevant information.

How to run

Make sure you followed prerequisites and then follow this instruction.

Step 1: Install GitHub extension

gh extension install mona-actions/gh-repo-stats

Step 1

Step 2: Run gh repo-stats

gh repo-stats --org-name=<ORG_NAME> --ghe-url=<GHE_URL> --token=<GITHUB_TOKEN>

Example Output

Output 1 Output 2

About

GH CLI extension to pull statistics on repository metadata used in GitHub migrations

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages