Scripts for generating OpenStack development community statistics
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Matt Riedemann 73d434b28c Add the ability to get reviewer stats across all stable branches
This adds a special "all" stable branch value handling for the
reviewers entrypoint. This allows one to do something like:

$ reviewers --stable all --days 90 --output ~/stable-all-reviewers-90

It would be nice to be able to specify a specific project, like nova,
with --stable but that is another change for another day.

Change-Id: I045e982e587c9fb2c53a9cb587f944f09c2c5793
6 years ago
doc/source cleaning up index.rst file 9 years ago
projects Add networking-ovn to projects 6 years ago
reviewstats Add the ability to get reviewer stats across all stable branches 6 years ago
tests Add --csv-rows option 10 years ago
.coveragerc Change ignore-errors to ignore_errors 8 years ago
.gitignore Add a bug statistics tool. 10 years ago
.gitreview Add .gitreview file 10 years ago
.mailmap Cookiecutterify reviewstats. 10 years ago
.testr.conf Cookiecutterify reviewstats. 10 years ago
CONTRIBUTING.rst Adjust wording for new Workflow URLs 9 years ago
LICENSE Cookiecutterify reviewstats. 10 years ago
MANIFEST.in Cookiecutterify reviewstats. 10 years ago
README.rst Add the ability to get reviewer stats across all stable branches 6 years ago
babel.cfg Cookiecutterify reviewstats. 10 years ago
genresults-openreviews.sh Add GERRIT_KEY and GERRIT_SERVER options in scripts 8 years ago
genresults-reviewers.sh Fix user and pass in genresults-reviewers.sh 8 years ago
genresults-reviews-for-bugs.sh Add GERRIT_KEY and GERRIT_SERVER options in scripts 8 years ago
openstack-common.conf Cookiecutterify reviewstats. 10 years ago
requirements.txt Remove argparse from requirements 7 years ago
setup.cfg python version changes 7 years ago
setup.py Cookiecutterify reviewstats. 10 years ago
test-requirements.txt Remove discover from test-requirements 7 years ago
tox.ini python version changes 7 years ago

README.rst

reviewstats

Utility scripts for generating stats about OpenStack development.

Features

  • openreviews.py - Get some stats on the number and age of open reviews.
  • reviewers.py - See how many reviews each person has done over a period of time.

Usage

Clone the git repository, then install the library:

pip install .

Run the scripts.

Project definitions

Each project has a JSON file describing what reviews, bugs and so on will count towards that projects statistics. The JSON file should have a single top level object containing the following keys:

  • name: The project name.
  • subprojects: A list of Gerrit projects to include.
  • core-team: A list of Gerrit usernames to consider as core reviewers across subprojects.
  • lp_projects: A list of Launchpad project ids to include.

Examples

  1. Get reviewer stats for the last 14 days (default) in the stable/pike branch:

$ reviewers --stable pike --output ~/reviewers-stable-pike-14

  1. Get reviewer stats for the last 90 days across all stable branches:

$ reviewers --stable all --days 90 --output ~/reviewers-stable-all-90