From 131fd5af0b46097b547bed19e0fff6624003d4bc Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Tue, 1 Oct 2024 04:24:58 -0400 Subject: [PATCH] feat: comment "Failed" on force quit --- joint_teapot/utils/joj3.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 921bd31..645eec5 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -189,6 +189,9 @@ def generate_title_and_comment( comment = f"Generated by [Gitea Actions #{run_number}]({action_link})\n" for stage in stages: comment += f"## {stage['name']}" + if stage["force_quit"] == True: + comment += " - Failed" + continue single_case = len(stage["results"]) == 1 if single_case: comment += f" - Score: {stage['results'][0]['score']}"