Scripts for generating OpenStack development community statistics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Zuul c911f29a86 Merge "Fix 'reviewers' command to make with Python3" 8 months ago
doc Switch to newer openstackdocstheme version 3 years ago
projects Oslo project updates 8 months ago
reviewstats Merge "Fix 'reviewers' command to make with Python3" 8 months ago
tests Cleanup repo 3 years ago
.coveragerc Change ignore-errors to ignore_errors 7 years ago
.gitignore Drop py2 testing and metadata 3 years ago
.gitreview OpenDev Migration Patch 4 years ago
.mailmap Cookiecutterify reviewstats. 9 years ago
.stestr.conf Switch to stestr 3 years ago
.zuul.yaml Update jobs 2 years ago
CONTRIBUTING.rst Adds tox docs job 4 years ago
LICENSE Cookiecutterify reviewstats. 9 years ago
MANIFEST.in Cookiecutterify reviewstats. 9 years ago
README.rst fix docs url 8 months ago
genresults-openreviews.sh Removes tabs from .sh files 6 years ago
genresults-reviewers.sh Removes tabs from .sh files 6 years ago
genresults-reviews-for-bugs.sh Removes tabs from .sh files 6 years ago
requirements.txt Cleanup repo 3 years ago
setup.cfg setup.cfg: Replace dashes with underscores 2 years ago
setup.py Cookiecutterify reviewstats. 9 years ago
test-requirements.txt Merge "Use unittest.mock instead of third party mock" 2 years ago
tox.ini Stop configuring install_command in tox. 2 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

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

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