GitXplorerGitXplorer
g

code-review-bot

public
101 stars
21 forks
7 issues

Commits

List of commits on branch main.
Unverified
eae4eb0b2055b22f9f4725dde92e34078bb9fc27

Update README regarding `gomock` and `mockgen`

mmbrukman committed 2 years ago
Unverified
4638d986d1f06da2c4c96da7352aab7907bf75af

Update to Go 1.16 as minimum requirement

mmbrukman committed 2 years ago
Unverified
2fbfc6957c139c4b22f9ddb44cfa3025d1c73d89

Update CI badge to specifically use `main` branch

mmbrukman committed 2 years ago
Unverified
9cf0ea4e7efddbbb3cc23059a51955fc8cdb53a0

Update `gomock` and `mockgen` to 1.6.0 (latest)

mmbrukman committed 2 years ago
Unverified
798a80a242c2e9833a2d1b733a17b936cc432c48

Update GitHub Actions to Ubuntu 22.04 and macOS 12

mmbrukman committed 2 years ago
Unverified
ec38f142b4d0490d257ebc33a66ee149d1dc8669

Also run GitHub Actions tests on macOS

mmbrukman committed 4 years ago

README

The README file for this repository.

Code Review Bot

Build Status Go Report Card API docs

Building

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

$ go install github.com/google/code-review-bot/cmd/crbot@latest
$ 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]

Developing

Install the mockgen tool from GoMock:

$ go install github.com/golang/mock/mockgen@v1.6.0

Generate the mocks:

$ go generate ./...

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

To update the version of the tools used in this repo:

  1. update the version number in this file (above) as well as in .github/workflows/main.yml and go.mod (see entry for github.com/golang/mock) to match — note that you should use the same version for mockgen as for the github.com/golang/mock repo to ensure they're mutually-consistent
  2. run go mod tidy to update the go.sum file
  3. run the updated go install command above to get newer version of mockgen
  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 (README.md), go.mod, go.sum, and main.yml, making sure that the build passes on GitHub Actions before merging the change

Testing

Just what you might expect:

$ make test

Contributing

See CONTRIBUTING.md for more details.

License

Apache 2.0; see LICENSE for more details.

Disclaimer

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.