From 28ae2734d0ee167773df71f947559f401aff8b1b Mon Sep 17 00:00:00 2001 From: Cheng Zheng Date: Sat, 20 Dec 2025 14:26:04 +0800 Subject: [PATCH] =?UTF-8?q?1=E6=9D=A1=E8=AF=84=E8=AE=BA=E5=A4=9F=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/scripts/process_item.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/scripts/process_item.py b/.github/scripts/process_item.py index 152c596..d8838b6 100644 --- a/.github/scripts/process_item.py +++ b/.github/scripts/process_item.py @@ -180,11 +180,14 @@ def main(): print(f"\n✅ PR 创建成功:{pr.html_url}") - # 标记所有评论 + # 标记所有评论(添加 🎉 表情) for comment in pending_comments: comment.create_reaction(SUCCESS_EMOJI) - reply_body = f"@{comment.user.login} 感谢提交,已添加至待审核列表!\n\nPR 链接:{pr.html_url}" - issue.create_comment(reply_body) + + # 创建一条评论提及所有用户 + user_mentions = " ".join([f"@{c.user.login}" for c in pending_comments]) + reply_body = f"{user_mentions} 感谢提交,已添加!\n\n PR 链接:{pr.html_url}" + issue.create_comment(reply_body) print(f"\n✅ 已标记所有 {len(pending_comments)} 个评论")