Package com.google.gerrit.server.rules
Class DefaultSubmitRule
java.lang.Object
com.google.gerrit.server.rules.DefaultSubmitRule
- All Implemented Interfaces:
SubmitRule
Java implementation of Gerrit's default pre-submit rules behavior: check if the labels have the
correct values, according to the
LabelFunction
they are attached to.
As this behavior is also implemented by the Prolog rules system, we skip it if at least one
project in the hierarchy has a rules.pl
file.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(ChangeData cd) Returns aOptional
ofSubmitRecord
status for the change.
-
Field Details
-
RULE_NAME
- See Also:
-
-
Constructor Details
-
DefaultSubmitRule
public DefaultSubmitRule()
-
-
Method Details
-
evaluate
Description copied from interface:SubmitRule
Returns aOptional
ofSubmitRecord
status for the change.Optional#empty()
if the SubmitRule was a no-op.- Specified by:
evaluate
in interfaceSubmitRule
-