Skip to content
Code review bot and CLA verifier
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Code Review Bot

Build Status Go Report Card API docs


First, ensure that you have installed Go 1.11 or higher since we need the support for Go modules via go mod.

On Travis CI, we also define the env var GO111MODULE=on to override the Go 1.5 vendor experiment; you may not necessarily need this setting in your environment if you don't have Go 1.5 vendor experiment also enabled.


To build the crbot tool without a cloned repo (assuming that $GOPATH/bin is in your $PATH):

$ go get
$ crbot [options]

Or, from a cloned repo:

$ git clone
$ cd code-review-bot
$ go build ./cmd/crbot
$ ./crbot [options]


Install GoMock:

$ go get
$ go get

Generate the mocks:

$ go generate ./...

This specific version of both gomock and mockgen tools is what's used in this repo, and tests will fail if your version of these tools generates different code, including comments.

To update the versions of these tools used in this repo:

  1. update the version numbers in this file (above) as well as in .travis.yml and go.mod to match
  2. run go mod tidy to update the go.sum file
  3. run the updated go get commands above to get newer versions of the tools
  4. run the go generate command above to regenerate the mocks
  5. run the tests from the top-level of the tree
  6. commit your changes to this file ( and .travis.yml, making sure that the build passes on Travis CI before merging the change


Just what you might expect:

$ make test


See for more details.


Apache 2.0; see LICENSE for more details.


This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

You can’t perform that action at this time.