Class SubmitRequirementLabelExtensionPredicate

All Implemented Interfaces:
Matchable<ChangeData>

public class SubmitRequirementLabelExtensionPredicate extends SubmitRequirementPredicate
Extensions of the LabelPredicate that are only available for submit requirement expressions, but not for search.

Supported extensions:

  • "users=human_reviewers" arg, e.g. "label:Code-Review=MAX,users=human_reviewers" matches changes where all human reviewers have approved the change with Code-Review=MAX
  • Method Details

    • matches

      public static boolean matches(String value)
    • validateIfNoMatch

      public static void validateIfNoMatch(String value) throws QueryParseException
      Throws:
      QueryParseException
    • match

      public boolean match(ChangeData cd)
      Description copied from interface: Matchable
      Does this predicate match this object?
    • getCost

      public int getCost()
      Description copied from interface: Matchable
      Returns a cost estimate to run this predicate, higher figures cost more.