From 2ccce418074e2afbfd32dec26008b39c962cabd6 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Fri, 4 Oct 2024 20:40:39 -0400 Subject: [PATCH] feat: add powered by in joj3 comment --- joint_teapot/utils/joj3.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 319d825..f08edfa 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -185,7 +185,11 @@ def generate_title_and_comment( stages: List[Dict[str, Any]] = json.load(json_file) total_score = 0 - comment = f"Generated by [Gitea Actions #{run_number}]({action_link})\n" + comment = ( + f"Generated from [Gitea Actions #{run_number}]({action_link}). " + + "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: comment += f"## {stage['name']}" force_quit = stage["force_quit"]