Skip to content

Commit

Permalink
feat: comment "Failed" on force quit
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Oct 1, 2024
1 parent d92e811 commit 131fd5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions joint_teapot/utils/joj3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}"
Expand Down

0 comments on commit 131fd5a

Please sign in to comment.