Hard-coding "passing" state in the "CombinedCheckState"
enum makes it hard to decide whether all required
checker have passed when their combined check state
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.
2 files changed