Skip to content

Instantly share code, notes, and snippets.

@larryclaman
Last active April 22, 2020 13:44
Show Gist options
  • Save larryclaman/dbfadc011d01254c8eb922e4fe4ba44a to your computer and use it in GitHub Desktop.
Save larryclaman/dbfadc011d01254c8eb922e4fe4ba44a to your computer and use it in GitHub Desktop.
from https://github.blog/2020-04-09-github-protips-tips-tricks-hacks-and-secrets-from-lee-reilly/
----
Sometimes it’s useful (or entertaining) to analyze a repository’s metadata and pull out metrics. Hopefully nobody’s judged on how many commits they make, but you can generate an ordered list of authors by commit count from the command line with git shortlog -sn.
$ git shortlog -sn
3164 Stanley Goldman
1549 Andreia Gaita
195 Don Okuda
191 Emil "AngryAnt" Johansen
15 Meaghan Lewis
9 Lee Reilly
8 Sarah Guthals
7 Sam Christiansen
7 Mauro Palumbo
6 Marcus Christensen
You can also exclude merge commits with git shortlog -sn --no-merges.
------
from: https://gist.github.com/marcuswestin/2934084
git log --pretty=oneline --author=Marcus --since=yesterday | wc
---------------------
query & search:
see : https://stackoverflow.com/questions/40534533/count-open-pull-requests-and-issues-on-github
https://api.github.com/search/issues?q=repo:MicrosoftDocs/azure-docs%20is:pr%20author:larryclaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment