From 128142e965d0181c98438ccb84a1fde64d3b31c2 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sat, 29 Nov 2025 23:55:08 -0800 Subject: [PATCH] feat: link to joj-mon from run ID --- joint_teapot/utils/joj3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 2479e78..9ab0e4b 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -7,6 +7,7 @@ from typing import Any, Dict, List, Optional, Tuple from pydantic_settings import BaseSettings +from joint_teapot.config import settings from joint_teapot.utils.logger import logger @@ -243,7 +244,7 @@ def generate_title_and_comment( f"Generated at {now} from [Gitea Actions #{run_number}]({action_link}), " f"commit {commit_hash}, " f"triggered by @{submitter}, " - f"run ID `{run_id}`.\n" + f"run ID [`{run_id}`](https://focs.ji.sjtu.edu.cn/joj-mon/d/{settings.gitea_org_name}?var-Filters=RunID%7C%3D%7C{run_id}).\n" "Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and " "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n" )