From da026005118492b42baeaabb3fb906cfaa17033b Mon Sep 17 00:00:00 2001 From: egghead_yao Date: Tue, 2 Jun 2026 17:46:51 +0800 Subject: [PATCH] fix: ji to gc in config --- joint_teapot/config.py | 6 +++--- joint_teapot/utils/joj3.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/joint_teapot/config.py b/joint_teapot/config.py index c6bd025..8015a1b 100644 --- a/joint_teapot/config.py +++ b/joint_teapot/config.py @@ -16,19 +16,19 @@ class Settings(BaseSettings): canvas_course_id: int = 0 # gitea - gitea_domain_name: str = "focs.ji.sjtu.edu.cn" + gitea_domain_name: str = "focs.gc.sjtu.edu.cn" gitea_suffix: str = "/git" gitea_access_token: str = "" gitea_org_name: str = "" gitea_debug: bool = False # git - git_host: str = "ssh://git@focs.ji.sjtu.edu.cn:2222" + git_host: str = "ssh://git@focs.gc.sjtu.edu.cn:2222" repos_dir: str = "./repos" default_branch: str = "master" # mattermost - mattermost_domain_name: str = "focs.ji.sjtu.edu.cn" + mattermost_domain_name: str = "focs.gc.sjtu.edu.cn" mattermost_suffix: str = "/mm" mattermost_access_token: str = "" mattermost_team: str = "" diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 9ab0e4b..9a99fd6 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -244,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}`](https://focs.ji.sjtu.edu.cn/joj-mon/d/{settings.gitea_org_name}?var-Filters=RunID%7C%3D%7C{run_id}).\n" + f"run ID [`{run_id}`](https://focs.gc.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" )