项目作者: borzecki

项目描述 :
code review stats for :octocat:
高级语言: Python
项目地址: git://github.com/borzecki/reviewio.git
创建时间: 2018-09-11T15:48:08Z
项目社区:https://github.com/borzecki/reviewio

开源协议:MIT License

下载





Provides meaningful insights into your pull requests since 2018

Installation

System

Install and update using pip:

  1. $ pip install reviewio

Reviewio supports Python 3.4 and newer.

Local and development

Make sure you have python and python-pip installed.
From the project folder run:

  1. $ pip install -r requirements.txt

Configuration

This tool uses PyGithub library for communication with GitHub. Authentication is handled by providing the environmental variable GITHUB_TOKEN which should be generated using instructions from github help pages.

  1. export GITHUB_TOKEN='{TOKEN}'

Usage

In order to calculate stats, you’ll need to supply the project name.

The most basic usage:

  1. $ reviewio show REPO_NAME

Filters

It’s possible to filter out only the pull requests you’re interested in by using following set of parameters.

name options default description
state open, closed, all open Select only pull requests with a given state.
weight-method changes, simple changes By default weights of pull requests are calculated based on introduced number of changes (sum of additions and deletions). Simple option counts each pull request with equal weight.
younger-than week, month, year, all month Taking into account pull requests younger than a specified period.
label labels used in the repository Allows you to filter pull requests using multiple labels.

Examples

  1. $ reviewio show django/django
  2. Processing Pull Requests [####################################] 100%
  3. Reviewers ranking:
  4. $ reviewio show django/django
  5. Processing Pull Requests [####################################] 100%
  6. Reviewers ranking:
  7. adamchainz [#######-------------------------------------] 16.0% (649)
  8. evildmp [####----------------------------------------] 10.9% (440)
  9. charettes [####----------------------------------------] 9.3% (376)
  10. auvipy [###-----------------------------------------] 7.7% (314)
  11. apollo13 [###-----------------------------------------] 7.2% (290)
  12. gilmarsoares-luizalabs [##------------------------------------------] 6.6% (268)
  13. vitorcapuano-luizalabs [##------------------------------------------] 6.6% (268)
  14. ariadyne-luizalabs [##------------------------------------------] 6.6% (268)
  15. carltongibson [##------------------------------------------] 6.1% (248)
  16. jarshwah [##------------------------------------------] 5.9% (241)
  17. felixxm [##------------------------------------------] 4.9% (197)
  18. MarkusH [##------------------------------------------] 4.6% (185)
  19. claudep [#-------------------------------------------] 3.1% (126)
  20. rochacbruno [#-------------------------------------------] 2.7% (111)
  21. ryanhiebert [--------------------------------------------] 1.1% (46)
  22. levidyrek [--------------------------------------------] 0.6% (26)
  23. Creators ranking:
  24. orf [####----------------------------------------] 10.8% (2332)
  25. evildmp [##------------------------------------------] 5.2% (1133)
  26. arthurio [#-------------------------------------------] 3.7% (806)
  27. codingjoe [#-------------------------------------------] 3.6% (784)
  28. chris-griffin [#-------------------------------------------] 3.6% (770)
  29. claudep [#-------------------------------------------] 3.3% (713)
  30. charettes [#-------------------------------------------] 3.1% (674)
  31. dspechnikov [#-------------------------------------------] 3.0% (643)
  32. tarkatronic [#-------------------------------------------] 2.4% (523)
  33. santiagobasulto [--------------------------------------------] 2.3% (487)
  34. atombrella [--------------------------------------------] 2.2% (466)
  35. luto [--------------------------------------------] 2.0% (440)
  36. srinivasreddy [--------------------------------------------] 2.0% (425)
  37. astandley [--------------------------------------------] 1.8% (389)
  38. ...

Hint

You can use this super-secret commands:

  • To get a list of repositories
  1. $ reviewio repos
  • To get a list of labels for a given repository
  1. $ reviewio labels django/django