Package com.google.gerrit.server.rules
Class DefaultSubmitRule
- java.lang.Object
-
- com.google.gerrit.server.rules.DefaultSubmitRule
-
- All Implemented Interfaces:
SubmitRule
public final class DefaultSubmitRule extends Object implements SubmitRule
Java implementation of Gerrit's default pre-submit rules behavior: check if the labels have the correct values, according to theLabelFunctionthey 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.plfile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultSubmitRule.Module
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SubmitRecord>evaluate(ChangeData cd)Returns aOptionalofSubmitRecordstatus for the change.
-
-
-
Method Detail
-
evaluate
public Optional<SubmitRecord> evaluate(ChangeData cd)
Description copied from interface:SubmitRuleReturns aOptionalofSubmitRecordstatus for the change.Optional#empty()if the SubmitRule was a no-op.- Specified by:
evaluatein interfaceSubmitRule
-
-