Implement Checks#areAllRequiredChecksPassing

Hard-coding "passing" state in the "CombinedCheckState"
enum makes it hard to decide whether all required
checker have passed when their combined check state
is "IN_PROGRESS".

This commit adds a new method to "Checks" interface
to calculate the "passing" state based on the
"CheckStateCount", which is also used to create
a combined check state.

This new method can be used by other code, e.g.
ChecksSubmitRule, who cares about whether all required
checkers have passed or not.

Change-Id: If16d42b46c15cf3ac40c45947cfd446d5c96f5ef
2 files changed
tree: 7a5e682ab7ff417dbe5ae1a9303980bd2ff11b60
  1. BUILD
  2. LICENSE
  3. README.md
  4. gr-checks/
  5. java/
  6. javatests/
  7. proto/
  8. resources/
README.md

Gerrit Code Review Checks Plugin

This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.