git-codereview: add GIT_CODEREVIEW_TRYBOT env var to control CI system

The mail command has a -trybot flag, useful to start TryBots on the CL
being mailed. The new LUCI trybots are almost ready, and we'll soon be
asking contributors to consider them the new default. Prepare for that
by adding a temporary GIT_CODEREVIEW_TRYBOT environment variable which
will make it possible to override the CI system invoked by the -trybot

This CL keeps the default as the old CI system (,
and the next CL switches it to the new one (

The environment variable will eventually be removed once it has no use.

Change-Id: Ia20bb0cad1fee387b2d94a8438e8a3be3ec87e6b
Reviewed-by: Dmitri Shuralyov <>
Run-TryBot: Dmitri Shuralyov <>
Auto-Submit: Dmitri Shuralyov <>
LUCI-TryBot-Result: Go LUCI <>
Reviewed-by: Heschi Kreinick <>
TryBot-Result: Gopher Robot <>
2 files changed
tree: 1d142215b9eabdb5ade76e0ab91813be1524cb89
  1. git-codereview/
  2. .gitattributes
  3. codereview.cfg
  5. go.mod


The git-codereview tool is a command-line tool for working with Gerrit.


The easiest way to install is to run go install You can also manually git clone the repository to $GOPATH/src/

Run git codereview hooks to install Gerrit hooks for your git repository.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the review repository is located at Prefix your issue with “x/review:” in the subject line, so it is easy to find.