https://github.com/google/pullsheet
Generate spreadsheets based on GitHub contributions
https://github.com/google/pullsheet
github
Last synced: 1 day ago
JSON representation
Generate spreadsheets based on GitHub contributions
- Host: GitHub
- URL: https://github.com/google/pullsheet
- Owner: google
- License: apache-2.0
- Created: 2021-02-19T03:02:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-07-17T00:53:03.000Z (8 days ago)
- Last Synced: 2026-07-23T15:25:02.530Z (1 day ago)
- Topics: github
- Language: Go
- Homepage:
- Size: 381 KB
- Stars: 90
- Watchers: 3
- Forks: 20
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# pullsheet
pullsheet generates a CSV (comma separated values) & HTML output about GitHub activity across a series of repositories.
It currently supports CSV exports for:
* Merged Pull Requests: `pullsheet prs [FLAGS]`
* Pull Request Reviews: `pullsheet reviews [FLAGS]`
* Opening/Closing Issues: `pullsheet issues [FLAGS]`
* Issue Comments: `pullsheet issue-comments [FLAGS]`
As well as a new HTML leaderboard mode: `pullsheet leaderboard [FLAGS]`
This tool was created as a brain-tickler for what PR's to discuss when asking for that big promotion.
## Usage
`go run pullsheet [subcommand] --repos --since 2006-01-02 --token-path [--users=]`
You will need a GitHub authentication token from https://github.com/settings/tokens
## Example: Merged PRs for 1 person across repos
`go run pullsheet.go prs --repos kubernetes/minikube,GoogleContainerTools/skaffold --since 2019-10-01 --token-path /path/to/github/token/file --users someone > someone.csv`
## Example: Merged PR Reviews for all users in a repo
`go run pullsheet.go reviews --repos kubernetes/minikube --kind=reviews --since 2020-12-24 --token-path /path/to/github/token/file > reviews.csv`
## Example: Merged PRs for a user in all repos within an org
`go run pullsheet.go prs --org google --since 2020-12-24 --token-path /path/to/github/token/file > reviews.csv`
## CSV fields
### Merged Pull Requests
```
URL string
Date string
User string
Project string
Type string
Title string
Delta int
Added int
Deleted int
FilesTotal int
Files string // newline delimited
Description string
```
### Merged Pull Request Reviews
```
URL string
Date string
Reviewer string
PRAuthor string
Project string
Title string
PRComments int
ReviewComments int
Words int
```
### Closed/Opened Issues
```
URL string
Date string
Author string
Closer string
Project string
Type string
Title string
```
### Issue Comments
```
URL string
Date string
Project string
Commenter string
IssueAuthor string
IssueState string
Comments int
Words int
Title string
```