Skip to main content

Gerrit Review Interface

Project description

gri : Gerrit Reduced Interface

gri is a CLI tool that lists git reviews from multiple servers in a way that makes easier to to identify which one need you attention.

screenshot

Features

  • combines results from multiple Gerrit servers
  • uses terminal clickable links to make it easy to access these reviews
  • displays important metadata related to reviews in a compressed format
  • reviews are sorted based on probablility of getting merged
  • allows user to abandon very old reviews
  • can be used to query:
    • already merged reviews
    • incoming reviews (where you are a reviewer)
    • reviewes created by other users than yourself
  • produce HTML reports

Installing

pip install gri

Usage

You can just run gri, or python -m gri in order to get a list of your current reviews, aslo known as outgoing reviews.

Currently the tool loads gerrit servers defined in ~/.gertty.yaml but uses credentials from ~/.netrc file.

$ gri --help
Usage: gri [OPTIONS] COMMAND [ARGS]...

Options:
  -i, --incoming             Incoming reviews (not mine)
  -m, --merged INTEGER       merged in the last number of days
  -a, --abandon              Abandon changes (delete for drafts) when they are
                             >90 days old and with negative score. Requires -f
                             to perform the action.
  -z, --abandon-age INTEGER  default=90, number of days for which changes are
                             subject to abandon
  General options:
    -u, --user TEXT          Query another user than self
    -s, --server TEXT        [0,1,2] key in list of servers, Query a single
                             server instead of all
    -o, --output TEXT        Filename to dump the result in, currently only
                             HTML is supported
    -f, --force              Perform potentially destructive actions.
    -d, --debug              Debug mode
  --help                     Show this message and exit.

Contributing

Are you missing a feature, just check if there is a bug open for it and add a new one if not. Once done, you are welcomed to make a PR that implements the missing change.

Related tools

  • git-review is the git extension for working with gerrit, where I am also one of the core contributors.
  • GerTTY is a very useful tui for gerrit which inspired me but which presents one essential design limitation: it does not work with multiple Gerrit servers.
  • Gerrit-View is a vscode plugin that can be installed from Visual Studio Marketplace.

Notes

  1. gri name comes from my attempt to find a short name that was starting with g (from git/gerrit) and preferably sounds like cli.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gri-0.5.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

gri-0.5.1-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gri-0.5.1.tar.gz.

File metadata

  • Download URL: gri-0.5.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for gri-0.5.1.tar.gz
Algorithm Hash digest
SHA256 83f45da5750cb36bb8ec203ef407dce9e619dd71c5eef8e26ba8f74055c0307e
MD5 f5bc2a06c100633db7705eea4960ea71
BLAKE2b-256 5af784ac239b36af3c373e9eb04f494e2dd8e92a7d587693fe4a2e89c62ce689

See more details on using hashes here.

File details

Details for the file gri-0.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: gri-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for gri-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d26c627f6c12f30182b0878e4c2ede1ff25f83eb8d7add84cfc998ce785384b
MD5 97f974892d867533c40645ab80010144
BLAKE2b-256 181651eaa9d7403521931ae30c434beaa0ecd6a26b8acdd0477ab4a3dc9f61f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page