mirror of
https://github.com/1c7/chinese-independent-developer.git
synced 2025-12-27 10:25:57 +08:00
1条评论够了
This commit is contained in:
9
.github/scripts/process_item.py
vendored
9
.github/scripts/process_item.py
vendored
@@ -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)} 个评论")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user