Skip to content

thomasvn/gwir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Week in Review

Spotify Wrapped meets Github Activity. A CLI tool that generates an overview of a Github organization's activity over the last X days. Along with links to its most active Issues and PRs.

$ gwir -org opencost

## Processing ...

opencost/opencost-grafana-dashboard. TotalEvents=16
opencost/opencost-parquet-exporter. TotalEvents=1
opencost/opencost-website. TotalEvents=1
opencost/opencost-helm-chart. TotalEvents=35
opencost/opencost-plugins. TotalEvents=31
opencost/opencost. TotalEvents=101

## Ordered results ...

### opencost/opencost. TotalEvents=101
  - IssueCommentEvent : 44
  - PushEvent : 18
  - PullRequestEvent : 13
  - WatchEvent : 11
  - CreateEvent : 7
  - DeleteEvent : 4
  - IssuesEvent : 2
  - PullRequestReviewEvent : 2
Top PRs/Issues:
  - [TypeUtil Enhancements                           ](https://github.com/opencost/opencost/pull/2707) : 6
  - [Intermittent "error":"vector cannot contain m...](https://github.com/opencost/opencost/issues/2704) : 6
  - [AWS IRSA authorizer for cloud integrations      ](https://github.com/opencost/opencost/pull/2710) : 5

...

Usage

$ gwir -h
  -days int
    	How many days back to analyze (default 7)
  -org string
    	GitHub organization to analyze
  -token string
    	Optional. Passing a GitHub Personal Access Token allows you to view private repositories and make more API requests per hour. You can also set this token as an environment variable GITHUB_PERSONAL_ACCESS_TOKEN.
  -top int
    	How many top PRs/Issues to show (default 5)
  -usr string
    	GitHub user to analyze

Install

ARCH=macos-arm64  # macos-amd64, linux-amd64, windows-amd64

curl -L -O https://github.com/thomasvn/gwir/releases/latest/download/gwir.$ARCH.tar.gz
tar -xvf gwir.$ARCH.tar.gz
sudo mv gwir /usr/local/bin

Optionally, set up your Github Personal Access Token (PAT) following this doc. The PAT will need the following permission: repo (Full control of private repositories).