Skip to content

nedbat/commitstats

Repository files navigation

Commit Stats

Note: this will be moved to repo-tools at some point.

How to collect conventional commit stats:

  1. Install requirements.txt into your current virtualenv.

  2. Install repo-tools (https://github.com/edx/repo-tools) into your current virtualenv.

  3. (if needed) Create a directory called "edx"

  4. cd into edx.

  5. Clone the edx org:

    $ clone_org edx
    
  6. Update all the repos:

    $ gittree "git fetch --all; git checkout \$(git remote show origin | awk '/HEAD branch/ {print \$NF}'); git pull"
    
  7. cd ..

  8. Delete the existing commits.db file, if any.

  9. Collect commit stats. Consider every edx repo, ignore the ones ending in "-private", and include all the ones that have an openedx.yaml file:

    $ python commitstats.py --ignore='*-private' --require=openedx.yaml edx/*
    
  10. Now commits.db is a SQLite database with a table called "commits".

  11. Draw a chart:

    $ python plotit.py
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published