Prior to invoking the
submit_rule(X) query for a change, Gerrit initializes the Prolog engine with a set of facts (current data) about this change. The following table provides an overview of the provided facts.
All the terms listed below are defined in the
gerritpackage. To use any of them we must use a qualified name like
In addition Gerrit provides a set of built-in helper predicates that can be used when implementing the
submit_rule predicate. The most common ones are listed in the following table.
For a complete list of built-in helpers read the
gerrit_common.pland all Java classes whose name matches
PRED_*.javafrom Gerrit’s source code.
Part of Gerrit Code Review