github-insight

module
v0.0.0-...-914f43d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT

README

github-insight

github-insight is a command-line tool for creating insight page of GitHub repository.

Features

  • Generate GitHub insight page of specified repository.
  • The insight include below data,
    • Basic information
    • Pie chart of distribution of languages
    • Bar chart of daily commit.
    • Latest commits
    • Pie chart of distribution of committers
    • Latest issues
    • Issues of beginners
    • Stack bar chart of issues.

Getting started

git clone https://github.com/wf001/github-insight

and create Github Personal Access token, run following command.

export GIT_KEY="<github personal access token>"
make build
./bin/ghi gen <username>/<repository>

Bob's your uncle! Finally open github-insight/generated/output.html with your browser.

Example is here

$ ./bin/ghi -h
NAME:
   ghi - Github insight page generator

USAGE:
   ghi [global options] command [command options] [arguments...]

VERSION:
   0.1.1

COMMANDS:
   gen      generate insight page
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)

Note: GitHub's personal access token has an API call limit within a unit period. The maximum fetching amount per calling is 100. Thus, for example, running this CLI against a repository with 500 commits and 1000 issues will consume 15, and 4985 API call is available in the remaining hour.

see also official doc(this CLI uses only core API)

Thanks

License

Licensed under the MIT License.

Directories

Path Synopsis
Commit represents a base commit, which is used by output html file directly and indirectly
Commit represents a base commit, which is used by output html file directly and indirectly
create instance of go-echarts
create instance of go-echarts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL