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 Collection<SubmitRecord>evaluate(ChangeData cd, SubmitRuleOptions options)Returns aCollectionofSubmitRecordstatus for the change.
-
-
-
Method Detail
-
evaluate
public Collection<SubmitRecord> evaluate(ChangeData cd, SubmitRuleOptions options)
Description copied from interface:SubmitRuleReturns aCollectionofSubmitRecordstatus for the change.- Specified by:
evaluatein interfaceSubmitRule
-
-