Get support for sagikazarmark/gh-stat
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
sagikazarmark/gh-stat
gh stat
GitHub CLI extension
GitHub CLI extension for displaying various stats about organizations and repositories.
⚠ This is a very first version based on a few quick experiments. I plan to improve it, but things might break. ⚠
Installation
gh extension install sagikazarmark/gh-stat
This extension depends on jq. To install using Homebrew:
brew install jq
Usage
❯ gh stat
Display various stats about your organization and repositories
USAGE
gh stat <stat> <resource> [flags]
AVAILABLE STATS
stars: Fetch data about stargazers
forks: Fetch data about forks
issues: Fetch data about issues
pull-requests: Fetch data about pull-requests
commits: Fetch data about commits
INHERITED FLAGS
--help Show help for command
ARGUMENTS
An resource can be supplied as argument in any of the following formats:
- organization or user, eg. "MY_USER"
- repository, e.g. "MY_ORG/MY_REPO".
EXAMPLES
$ gh stat stars MY_ORG/MY_REPO --group-by month
$ gh stat forks MY_ORG/MY_REPO --group-by year
$ gh stat issues MY_ORG/MY_REPO --csv
$ gh stat commits MY_ORG/MY_REPO --branch master
LEARN MORE
Use 'gh <command> <subcommand> --help' for more information about a command.
Read the manual at https://cli.github.com/manual
Improvement ideas
- Better validation
- Support org level stats (currently blocked: https://github.com/cli/cli/issues/4413)
- Rewrite in Go
- Pros:
- Better flexibility
- Better parameter parsing/validation
- GraphQL?
- Cons:
- Binary distribution might be less ideal (users can't read the code)
- GraphQL?
- Pros:
- Come up with a GitHub CLI extension framework
- Based on Go?
- Based on Bash?
- Rbenv style commands?
- More options for stats
- Custom fields included?
- Table output
- Shell charts?
License
The MIT License (MIT). Please see License File for more information.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2