commit | 2c2d751ba697bb8d466cad68e95d93ebd15244c8 | [log] [tgz] |
---|---|---|
author | Youssef Elghareeb <ghareeb@google.com> | Wed Feb 23 13:24:20 2022 +0100 |
committer | Youssef Elghareeb <ghareeb@google.com> | Wed Feb 23 14:53:08 2022 +0100 |
tree | 94ae7e54d5f35bc17c7a31914f2636aa25ac070e | |
parent | 5c2e1884bb65a884087f9eb41232129d09bab58d [diff] |
Add a new 'authoremail' submit requirement predicate The new predicate returns true if the change author's email address matches a specific regular expression pattern. The new predicate is exactly the same as the commit_author prolog predicate (see [1]) which accepts regular expressions. Note: we could've used the already available 'author' search operator but that operator matches with both name/email addresses, allowing an adversary to set their name in a way that might match a submit requirement rule. For this reason we implemented this as a new submit requirement predicate that only matches with email addresses. [1] https://gerrit-review.googlesource.com/Documentation/prolog-change-facts.html Release-Notes: Add new authoremail:<email_pattern> submit requirement operator Change-Id: I28a5e8f7d5494f051aaa26b2c2b7c5eaceae19fb
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://gerrit.googlesource.com/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.