Package: gri
gri : Git Reduced Interfacegriis a CLI tool thatlists git reviewsfrom multiple servers
in a way that makes easier to to identify which one need you attention.Currently supported backends are Gerrit and GitHub but it should be easy to
add others if needed.Featurescombines results from multiple Gerrit or GitHub serversuses terminal clickable links to make it easy to access these reviewsdisplays important metadata related to reviews in a compressed formatreviews are sorted based on probablility of getting mergedallows user to abandon very old reviewscan be used to query:already merged reviewsincoming reviews (where you are a reviewer)reviewes created by other users than yourselfproduce HTML reportsInstallingpipinstallgriUsageYou can just rungri, orpython -m griin order to get a list of your
current reviews, aslo known as outgoing reviews.GRI uses a simple config file~/.config/gri/gri.yamlbut when the file
is missing, it will try to load servers from~/.gertty.yamlin case you
have one.$gri--helpUsage: gri [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...Options:-a, --abandon              Abandon changes (delete for drafts) when they are>90 days old and with negative score. Requires -fto perform the action.-z, --abandon-age INTEGER  default=90, number of days for which changes aresubject to abandon-u, --user TEXT            Query another user than self-s, --server TEXT          [0,1,2] key in list of servers, Query a singleserver instead of all-o, --output TEXT          Filename to dump the result in, currently onlyHTML is supported-f, --force                Perform potentially destructive actions.-d, --debug                Debug mode--help                     Show this message and exit.Commands:incoming  Incoming reviews (not mine)merged    merged in the last number of daysowned     Changes originated from current user (implicit)There is also an experimentalgribcommand line for quering bugs (issues),
which has almost identical options.ConfiguringUnless you already have a GerTTY config, here is how to configure the tool:# ~/.config/gri/gri.yamlservers:-name:opendev# server 0, select it with '-s 0'url:https://review.opendev.org/-name:rdo# server 0, select it with '-s 1'url:https://review.rdoproject.org/r/auth-type:basic# needed only for old gerrit versionsYou may be surprised to observe that the credentials are not stored inside
the same file. That is by design and the tool will load them from~/.netrcfile, which is also the standard way to place network related credentials.# ~/.netrc# password is the token generated by gerrit on your user settings pagemachine review.rdoproject.org login jonhdoe password changemeContributingAre 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 toolsgit-reviewis the git extension for working with gerrit, where I am also
one of the core contributors.gerttyis 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-viewis a vscode plugin
that can be installed fromVisual Studio Marketplace.Notesgriname comes from my attempt to find a short name that was starting
withg(from git/gerrit) and preferably sounds likecli.