Counting and analyzing commits in a Github organization (not a repo)

I would like to count 2012 commits at http://github.com/plone and http://github.com/collective

Are there any tools for this - providing statistics for Github organizations?

Do I need to write my own script to clear the repositories, check them individually and count?

+5
source share
1 answer

Here's how I do it:

  • use the GitHub API to list repositories (see JSON for Plone ). Iterate over the JSON result and each of them:
    • (git_url URL) git clone --bare; git , . <repository_name>.git>, plone.event.git, git://github.com/plone/plone.event.git.
    • git --git-dir=<git_directory> rev-list HEAD --count; stdout, subprocess.check_output() .
    • .git

2 API, ; API , .

+3

All Articles