bots: Fix tests-scan incorrect logging

A pending status doesn't necessarily mean a skipped test (direct
triggers).
This commit is contained in:
Sanne Raymaekers 2019-07-25 14:21:29 +02:00
parent d199273423
commit ba04dc970c
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ def prioritize(status, title, labels, priority, context, number):
priority -= 2
elif state in [ "pending" ]:
logging.info("Skipping '{0}' on #{1} because it is pending".format(context, number))
logging.info("Not updating status for '{0}' on #{1} because it is pending".format(context, number))
update = None
# Ignore context when the PR has [no-test] in the title or as label, unless
@ -254,7 +254,7 @@ def prioritize(status, title, labels, priority, context, number):
if update:
if priority <= 0:
logging.info("Skipping '{0}' on #{1} because of low priority".format(context, number))
logging.info("Not updating status for '{0}' on #{1} because of low priority".format(context, number))
update = None
else:
update["description"] = github.NOT_TESTED