maximilien / ghtrack

A python tool to keep track of GitHub users stats
Apache License 2.0
3 stars 3 forks source link

Add --summarize flag to present a summary of the data #6

Closed maximilien closed 4 years ago

maximilien commented 4 years ago

Feature request

Current data is by user, that is:

...
org        year  month    data     state
-------  ------  -------  -------  -------
knative    2020  july     commits  closed

user        repo            data       count
----------  --------------  -------  -------
maximilien  client          commits        5
maximilien  client-contrib  commits        0
octocat     client          commits        0
octocat     client-contrib  commits        0
...

Would be great to present different summary view, e.g., by data type and by repo. So something like:

repo                 data   count
-------------  ------- -------
client        commits 5
client-contrib commits 0

and

data          repo                count
---------  ------              -------
commits   client               5
commits   client-contrib 1
prs            client-contrib  0
reviews    client-contrib  10

Use case

Avoids having to compute these summary and very useful for team workflows

UI Example

./ght stats july knative --commits --issues --prs --summarize --users=maximilien,octocat --repos=client,client-contrib -o text --show-all-stats

/kind good-first-issue