reviewrot is a CLI tool, that helps to list down open review requests from github, gitlab, pagure and gerrit.
Create '~/.reviewrot.yaml'. browse the examples for content.
python setup.py install
Alternatively, for development:
python setup.py develop
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
> 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.
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.