Skip to content

pbortlov/review-rot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

review-rot

reviewrot is a CLI tool, that helps to list down open review requests from github, gitlab, pagure and gerrit.

Sample I/P:

Create '~/.reviewrot.yaml'. browse the examples for content.

Installation

python setup.py install

Alternatively, for development:

python setup.py develop

Tests

To run the tests in your virtualenv, execute:

python setup.py test

Alternatively, you can use tox or detox to run the tests against multiple versions of python:

sudo dnf install python-detox
detox

Script:

review-rot

> review-rot --help

usage: review-rot [-h] [-c CONFIG] [-s {older,newer}] [-v VALUE]
                  [-d {y,m,d,h,min}] [-f {oneline,indented,json}] [--reverse]
                  [--debug] [-k] [--cacert CACERT]

Lists pull/merge/change requests for github, gitlab, pagure and gerrit

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Configuration file to use.
  -s {older,newer}, --state {older,newer}
                        Pull requests state 'older' or 'newer'
  -v VALUE, --value VALUE
                        Pull requests duration in terms of value(int)
  -d {y,m,d,h,min}, --duration {y,m,d,h,min}
                        Pull requests duration in terms of y=years,m=months,
                        d=days, h=hours, min=minutes
  -f {oneline,indented,json}, --format {oneline,indented,json}
                        Choose from one of a few different styles.
  --reverse             Display results with the latest first.
  --debug               Display debug logs on console

SSL:
  -k, --insecure        Disable SSL certificate verification (not
                        recommended).
  --cacert CACERT       Path to CA certificate to use for SSL certificate
                        verification.

Web UI

There is a static html+js web interface that can read in the output of the review-rot CLI tool and produce a web page:

First, set up a cron job to run review-rot every (say) 15 minutes:

*/15 * * * * review-rot -f json > /home/someuser/public_html/reviewrot/data.json

Then, modify web/js/site.js to point the data url to the location of your new file.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 95.5%
  • HTML 2.4%
  • JavaScript 1.5%
  • CSS 0.6%