A CLI tool to get activity data of a GitHub repository.
pip install git+https://github.com/yuizho/repo-insights@0.0.7
Usage: repo-insights [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
pr This command allows you to get activity data of a GitHub Pull...
release This command allows you to get activity data of a GitHub Release.
Usage: repo-insights pr [OPTIONS] REPOSITORY_NAME PERSONAL_TOKEN
This command allows you to get activity data of a GitHub Pull Reuqst.
Time taken to merge field of a result is calculated by (merged datetime - created datetime of the PR).
A result is output in CSV format.
Usage: repo-insights pr "yuizho/repo-insights" "<your personal token of GitHub>"
Options:
-f, --first-created-date TEXT first created date to filter PRs (format: yyyy-
mm-dd) [default: 30 days before]
-b, --base TEXT a base branch to filter PR
-l, --label TEXT a label name to filter PR
-d, --delimiter TEXT a delimiter character to separate fields of a result [default: ,]
--help Show this message and exit.
Usage: repo-insights release [OPTIONS] REPOSITORY_NAME PERSONAL_TOKEN
This command allows you to get activity data of a GitHub Release.
A result is output in CSV format.
Usage: repo-insights release "yuizho/repo-insights" "<your personal token of GitHub>"
Options:
-f, --first-date TEXT first date to filter Releases [default: 30 days before]
-d, --delimiter TEXT a delimiter character to separate fields of a result [default: ,]
--help Show this message and exit.
$ pipenv sync --dev
$ pipenv run repo-insights --help
$ pipenv run test
MIT