diff --git a/joint_teapot/app.py b/joint_teapot/app.py index 907e1d3..6ac7110 100644 --- a/joint_teapot/app.py +++ b/joint_teapot/app.py @@ -464,7 +464,7 @@ def joj3_all( "", help="commit hash that triggers gitea actions", ), - run_ID: str = Argument( + run_id: str = Argument( "unknown", help="JOJ3 run ID", ), @@ -507,7 +507,7 @@ def joj3_all( submitter, commit_hash, submitter_in_issue_title, - run_ID, + run_id, ) title_prefix = joj3.get_title_prefix(title) joj3_issue: focs_gitea.Issue diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py index 2ead66f..2301b98 100644 --- a/joint_teapot/utils/joj3.py +++ b/joint_teapot/utils/joj3.py @@ -187,7 +187,7 @@ def generate_title_and_comment( submitter: str, commit_hash: str, submitter_in_title: bool = True, - run_ID: str = "unknown", + run_id: str = "unknown", ) -> Tuple[str, str]: with open(score_file_path) as json_file: stages: List[Dict[str, Any]] = json.load(json_file) @@ -203,7 +203,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}`.\n" "Powered by [JOJ3](https://github.com/joint-online-judge/JOJ3) and " "[Joint-Teapot](https://github.com/BoYanZh/Joint-Teapot) with ❤️.\n" )