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. gr-checks/
  2. java/
  3. javatests/
  4. proto/
  5. resources/
  6. BUILD
  7. LICENSE
  8. README.md
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.