feat: add powered by in joj3 comment

This commit is contained in:
张泊明518370910136 2024-10-04 20:40:39 -04:00
parent 3b40174a64
commit 2ccce41807
GPG Key ID: CA088E6D9284F870

View File

@ -185,7 +185,11 @@ def generate_title_and_comment(
stages: List[Dict[str, Any]] = json.load(json_file) stages: List[Dict[str, Any]] = json.load(json_file)
total_score = 0 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: for stage in stages:
comment += f"## {stage['name']}" comment += f"## {stage['name']}"
force_quit = stage["force_quit"] force_quit = stage["force_quit"]