Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolph/next-review
Start your next gerrit code review without any hassle.
https://github.com/dolph/next-review
gerrit gerrit-cli
Last synced: 5 days ago
JSON representation
Start your next gerrit code review without any hassle.
- Host: GitHub
- URL: https://github.com/dolph/next-review
- Owner: dolph
- License: apache-2.0
- Created: 2013-05-30T01:45:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T21:23:55.000Z (over 8 years ago)
- Last Synced: 2024-11-02T09:42:29.908Z (12 days ago)
- Topics: gerrit, gerrit-cli
- Language: Python
- Homepage: https://pypi.python.org/pypi/next-review
- Size: 72.3 KB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===========
next-review
===========Start your next gerrit code review without any hassle.
So you have 10 minutes to spend on code reviews and you want to be as
productive as possible. You definitely don't want to spend 9 minutes shuffling
through code reviews that Jenkins already hates, you've already reviewed, etc.,
and you should definitely be looking at that awesome patch that's about to
expire due to two weeks of inactivity.Solution: Use ``next-review`` to immediately jump to the "highest priority"
code review currently awaiting your gracious downvotes. Inhale some code,
articulate your opinion, cast your vote and then move on to your
``next-review``. Got it?Installation
------------.. image:: https://img.shields.io/pypi/v/next-review.svg
:target: https://pypi.python.org/pypi/next-reviewFrom PyPi::
$ pip install next-review
Usage
-----If you can use ``git-review``, you can probably use ``next-review``. Assuming
you're watching some projects in gerrit, have an SSH key public key somewhere
obvious and your login name matches your gerrit username, you can just do::$ next-review
https://review.openstack.org/88443 stackforge/python-openstacksdk Add Transport docThe link will be automatically opened for you, because that's how lazy I am.
You can also abuse the return code to see how many reviews you have left to go
until it's time for beer and/or sleep::$ echo $?
5Or, you can just view the entire list without automatically opening any links::
$ next-review --list
https://review.openstack.org/88443 stackforge/python-openstacksdk Add Transport doc
https://review.openstack.org/85210 openstack/keystone Fix variable passed to driver module
https://review.openstack.org/89458 openstack/python-keystoneclient Make auth_token return a V2 Catalog
https://review.openstack.org/90943 openstack/keystone Refactor create_trust for readability
https://review.openstack.org/91440 openstack/identity-api Replace non-breaking spaceConfiguration File
------------------
``next-review`` has the concept of a multi-section (ini-style) configuration
file. The default location it looks for it is ``~/.next_review``. In this
configuration file the default section is ``[DEFAULT]`` and the following
options are supported: ``host``, ``port``, ``username``, ``email``, ``key``,
and ``projects``. These values will override the defaults, but any
cli-arguments that are explicitly set will take precedence over the config
file.If you specify sections other than ``[DEFAULT]`` you can use the ``--config-section``
argument to specify the section that should be used. If a given option does not
exist in the specified section, the parser will look in ``[DEFAULT]`` and if
the option does not exist in either section, it will fall back to the global
defaults. So the order of precedence would be option passed on the command
line, options in the section specified by the ``--config-section`` argument,
options in the ``[DEFAULT]`` section, and finally the global defaults.Philosophy
----------1. Older changes should be reviewed first.
2. If Jenkins is failing a change, then the author has work to do.
3. If SmokeStack is failing a change, then the author has work to do. If
SmokeStack hasn't reviewed a change, that's okay... SmokeStack is lazy, too.
4. If a change is already blocked by a core reviewer or marked WIP or Draft,
then it's not going to merge right now anyway.