feat: joj3 issue show time

This commit is contained in:
张泊明518370910136 2024-10-27 11:50:57 -04:00
parent f85b20e197
commit 41d8167dc5
Signed by untrusted user: 张泊明518370910136
GPG Key ID: CA088E6D9284F870

View File

@ -196,12 +196,13 @@ def generate_title_and_comment(
comment = stage["results"][0]["comment"]
exercise_name = comment.split("-")[0]
total_score = 0
now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
comment = (
f"Generated from [Gitea Actions #{run_number}]({action_link}), "
+ f"commit {commit_hash}, "
+ f"triggered by @{submitter}.\n"
+ "Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and "
+ "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n"
f"Generated at {now} from [Gitea Actions #{run_number}]({action_link}), "
f"commit {commit_hash}, "
f"triggered by @{submitter}.\n"
"Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and "
"[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n"
)
for stage in stages:
if all(