The current logic applies checks color only once. That's
weird and makes harder for people to properly idenfify
CI checks when there are multiple CI reports at the same line.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
counts = patch.check_count
check_elements = []
- use_color = True
for state in required[::-1]:
if counts[state]:
- if use_color:
- use_color = False
- color = dict(Check.STATE_CHOICES).get(state)
- else:
- color = ''
+ color = dict(Check.STATE_CHOICES).get(state)
count = str(counts[state])
else:
color = ''