GithubHelp home page GithubHelp logo

isabella232 / code-review-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/code-review-bot

0.0 0.0 0.0 111 KB

Code review bot and CLA verifier

License: Apache License 2.0

Makefile 2.23% Go 93.16% Shell 4.62%

code-review-bot's Introduction

Code Review Bot

Build Status Go Report Card API docs

Prerequisites

Ensure that you have installed Go 1.11 or higher to enable support for Go modules via go mod.

If you're using Go 1.11 or 1.12, set the environment variable GO111MODULE=on (Go 1.13 and later versions automatically enable module support).

Building

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

$ 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]

Developing

Install GoMock:

$ go get github.com/golang/mock/[email protected]
$ go get github.com/golang/mock/[email protected]

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 .github/workflows/main.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 (README.md), go.mod, go.sum, and .travis.yml, making sure that the build passes on Travis CI 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.

code-review-bot's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.