Code Review Bot
First, ensure that you have installed Go 1.11 or higher since we need the
support for Go modules via
On Travis CI, we also define the env var
GO111MODULE=on to override the Go
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
$ go get github.com/google/code-review-bot/cmd/crbot $ crbot [options]
Or, from a cloned repo:
$ git clone https://github.com/google/code-review-bot.git $ cd code-review-bot $ go build ./cmd/crbot $ ./crbot [options]
$ go get firstname.lastname@example.org $ go get email@example.com
Generate the mocks:
$ go generate ./...
This specific version of both
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:
- update the version numbers in this file (above) as well as in
go mod tidyto update the
- run the updated
go getcommands above to get newer versions of the tools
- run the
go generatecommand above to regenerate the mocks
- run the tests from the top-level of the tree
- commit your changes to this file (
.travis.yml, making sure that the build passes on Travis CI before merging the change
Just what you might expect:
$ make test
CONTRIBUTING.md 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.