From bc6d85811d1ded4c078c4921120ff490e0b1a36e Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Tue, 1 Oct 2024 04:56:59 -0400 Subject: [PATCH] feat: leave comment on force quit --- joint_teapot/utils/joj3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 645eec5..4f1b7bf 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -189,9 +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: + force_quit = stage["force_quit"] + if force_quit: comment += " - Failed" - continue single_case = len(stage["results"]) == 1 if single_case: comment += f" - Score: {stage['results'][0]['score']}"