tree: fe42850a68b6859db728b5c398b1d8c2c33c24b2 [path history] [tgz]
  1. BUILD.bazel
  2. config.go
  3. config_test.go
  4. gemini.go
  5. gemini_test.go
  6. git.go
  7. main.go
  8. prompts.go
  9. prompts_test.go
  10. README.md
cmd/autoreview/README.md

Auto Review (cmd/autoreview)

AI-powered code review tool. It analyzes the latest commit or your current working directory changes using Google's Gemini API and provides a summary and an LGTM status.

Usage

Build and run the tool:

bazel run //cmd/autoreview

Display a help message:

bazel run //cmd/autoreview -- --help

Pass command line options:

bazel run //cmd/autoreview -- [options]

Authentication Setup

The tool uses Google Cloud application-default credentials. Run the following commands to authenticate via Google Cloud:

gcloud auth application-default set-quota-project skia-infra-corp
gcloud auth application-default login

See more go/gemini-api/authentication.