From 7d48a2d6de309bd5d6deff9aace5c4ef7849adb0 Mon Sep 17 00:00:00 2001
From: BoYanZh <boyanzh233@gmail.com>
Date: Mon, 25 Nov 2024 02:16:11 -0500
Subject: [PATCH] feat: show groups in commit msg

---
 joint_teapot/app.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/joint_teapot/app.py b/joint_teapot/app.py
index d58bbea..af7b05d 100644
--- a/joint_teapot/app.py
+++ b/joint_teapot/app.py
@@ -473,6 +473,10 @@ def joj3_all(
         "unknown",
         help="JOJ3 run ID",
     ),
+    groups: str = Argument(
+        "",
+        help="groups used in this run",
+    ),
     max_total_score: int = Option(
         -1,
         help="max total score",
@@ -596,7 +600,8 @@ def joj3_all(
                         f"joj3: update scoreboard for {exercise_name} by @{submitter} in "
                         f"{settings.gitea_org_name}/{submitter_repo_name}@{commit_hash}\n\n"
                         f"gitea actions link: {gitea_actions_url}\n"
-                        f"gitea issue link: {gitea_issue_url}"
+                        f"gitea issue link: {gitea_issue_url}\n"
+                        f"groups: {groups}\n"
                     ),
                 )
             if not skip_failed_table:
@@ -614,7 +619,8 @@ def joj3_all(
                         f"joj3: update failed table for {exercise_name} by @{submitter} in "
                         f"{settings.gitea_org_name}/{submitter_repo_name}@{commit_hash}\n\n"
                         f"gitea actions link: {gitea_actions_url}\n"
-                        f"gitea issue link: {gitea_issue_url}"
+                        f"gitea issue link: {gitea_issue_url}\n"
+                        f"groups: {groups}\n"
                     ),
                 )
             push_info_list = tea.pot.git.push(repo_name)