support check_run.status as a category+[status]

This commit is contained in:
jesopo 2020-10-17 17:13:52 +00:00
parent 2f5d001a79
commit c4c6fdde1c

View file

@ -126,6 +126,8 @@ class GitHub(object):
category_action = None category_action = None
if "review" in data and "state" in data["review"]: if "review" in data and "state" in data["review"]:
category = "%s+%s" % (event, data["review"]["state"]) category = "%s+%s" % (event, data["review"]["state"])
elif "check_run" in data and "status" in data["check_run"]:
category = "%s+%s" % (event, data["check_run"]["status"])
if action: if action:
if category: if category: