Documentation ¶
Overview ¶
The presubmit binary runs many checks on the differences between the current commit and its parent branch. This is usually origin/main. If there is a chain of CLs (i.e. branches), this will only consider the diffs between the current commit and the parent branch. If all presubmits pass, this binary will output nothing (by default) and have exit code 0. If any presubmits fail, there will be errors logged to stdout and the exit code will be non-zero.
This should be invoked from the root of the repo via Bazel like
bazel run //cmd/presubmit
See presubmit.sh for a helper that pipes in the correct value for repo_dir.
Click to show internal directories.
Click to hide internal directories.