Categorygithub.com/jmainguy/githubstats
modulepackage
0.0.1
Repository: https://github.com/jmainguy/githubstats.git
Documentation: pkg.go.dev

# README

githubstats

Go Report Card Release Coverage Status

A golang application to return stats from github via their graphql endpoint

Requirements

This tool requires a github personal access token to work, the token needs to repo permissions.

You need to export the token before running the tool, it has to be named GITHUB_TOKEN

export GITHUB_TOKEN=ghp_sdasdasdewsadsdad2asdsadasdas

Usage

Usage of githubstats:
  -orgs string
    	a list of orgs separated by commas (default "standouthost")
  -since string
    	yyyy-mm-dd date to check for stats since (default "2022-01-01")
  -user string
    	Github Username (default "Jmainguy")
  -verbose
    	print verbose information about each contribution or not

Example

[jmainguy@jmainguy githubstats]$ export GITHUB_TOKEN=ghp_sdasdasdewsadsdad2asdsadasdas
[jmainguy@jmainguy githubstats]$ githubstats 
Total PR's Opened 7
Total PR's Merged 5
Total Reviews 3

PreBuilt Binaries

Grab Binaries from The Releases Page

Install

Homebrew

brew install Jmainguy/tap/githubstats

Build

export GO111MODULE=on
go build