From 4bea8cf175fb09308733bb91488f644dc535bf25 Mon Sep 17 00:00:00 2001 From: Simon <252317962+SIMON-WORLD@users.noreply.github.com> Date: Mon, 3 Aug 2026 10:19:09 -0400 Subject: [PATCH] feat: include human maintainers in daily check-in, add 3 more bots Daily check-in now co-authors Codex, Claude, SIMON-WORLD and ukinch605 by default (override via AGENT_CHECKIN_AUTHORS). Add pypi[bot], npm[bot] and octokit[bot] to the real-bot catalog and selection script. Co-Authored-By: pypi[bot] <253595658+pypi[bot]@users.noreply.github.com> Co-Authored-By: npm[bot] <38296568+npm[bot]@users.noreply.github.com> Co-Authored-By: octokit[bot] <171388558+octokit[bot]@users.noreply.github.com> --- .github/workflows/scheduled-agent-checkin.yml | 6 +++--- docs/contributor-catalog.md | 8 +++++--- scripts/build_contributors.py | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/scheduled-agent-checkin.yml b/.github/workflows/scheduled-agent-checkin.yml index b6050ce..ecfb02e 100644 --- a/.github/workflows/scheduled-agent-checkin.yml +++ b/.github/workflows/scheduled-agent-checkin.yml @@ -49,9 +49,9 @@ jobs: exit 0 fi - # 默认携带全部免费 AI 共同作者身份(与 docs/contributor-catalog.md 同步)。 - # 想选择部分身份时,在仓库变量 AGENT_CHECKIN_AUTHORS 里用英文分号覆盖。 - authors="${AGENT_CHECKIN_AUTHORS:-Codex ;Claude ;Copilot ;ChatGPT ;Gemini ;Aider ;Cline ;Cursor ;Windsurf }" + # 默认携带 Codex、Claude 与两位维护者;其他仓库可设置仓库变量 + # AGENT_CHECKIN_AUTHORS(英文分号分隔)选择自己的身份组合。 + authors="${AGENT_CHECKIN_AUTHORS:-Codex ;Claude ;SIMON-WORLD <252317962+SIMON-WORLD@users.noreply.github.com>;ukinch605 <305923263+ukinch605@users.noreply.github.com>}" author_names="" trailer_file="$(mktemp)" trap 'rm -f "$trailer_file"' EXIT diff --git a/docs/contributor-catalog.md b/docs/contributor-catalog.md index b30e2e8..831a4d7 100644 --- a/docs/contributor-catalog.md +++ b/docs/contributor-catalog.md @@ -17,7 +17,7 @@ ## C. 真实 GitHub Bot 账号(必然进入 Contributors) 与 `dependabot[bot]`、`github-actions[bot]` 一样是真实 GitHub 账号,邮箱格式 -`{id}+{login}@users.noreply.github.com`,解析是确定性的(已验证 6/6 起步,已扩展到 30 个): +`{id}+{login}@users.noreply.github.com`,解析是确定性的(已验证 6/6 起步,已扩展到 33 个): | ID | 展示名 | 尾注格式 | 说明 | |---|---|---|---| @@ -51,6 +51,9 @@ | hound | hound[bot] | `hound[bot] <30008653+hound[bot]@users.noreply.github.com>` | Hound 代码风格审查 bot | | stickler-ci | stickler-ci[bot] | `stickler-ci[bot] <41810448+stickler-ci[bot]@users.noreply.github.com>` | Stickler CI 风格检查 bot | | release-drafter | release-drafter[bot] | `release-drafter[bot] <40829082+release-drafter[bot]@users.noreply.github.com>` | Release Drafter 发布草稿 bot | +| pypi | pypi[bot] | `pypi[bot] <253595658+pypi[bot]@users.noreply.github.com>` | PyPI 官方 bot | +| npm | npm[bot] | `npm[bot] <38296568+npm[bot]@users.noreply.github.com>` | npm 官方 bot | +| octokit | octokit[bot] | `octokit[bot] <171388558+octokit[bot]@users.noreply.github.com>` | GitHub 官方 Octokit bot | 说明: - 带 `[bot]` 的名字可以放进 `AGENT_CHECKIN_AUTHORS`(工作流正则已支持方括号), @@ -88,6 +91,5 @@ python scripts/build_contributors.py --bots --commit-message "feat: example" ### 可选:让每日 check-in 自动携带选中的身份 参考 `.github/workflows/scheduled-agent-checkin.yml`: -- 默认会携带 A 组全部身份; -- 想选择部分身份,在目标仓库设置变量 `AGENT_CHECKIN_AUTHORS`,用英文分号分隔; +- 默认会携带 Codex、Claude 与维护者(可设置仓库变量 `AGENT_CHECKIN_AUTHORS` 覆盖); - 开启方式:设置仓库变量 `AGENT_CHECKIN_ENABLED=true`,然后手动运行一次该工作流。 diff --git a/scripts/build_contributors.py b/scripts/build_contributors.py index 4d33dd2..b5ff94d 100644 --- a/scripts/build_contributors.py +++ b/scripts/build_contributors.py @@ -220,6 +220,24 @@ "email": "40829082+release-drafter[bot]@users.noreply.github.com", "note": "Release Drafter 发布草稿 bot", }, + { + "id": "pypi", + "name": "pypi[bot]", + "email": "253595658+pypi[bot]@users.noreply.github.com", + "note": "PyPI 官方 bot", + }, + { + "id": "npm", + "name": "npm[bot]", + "email": "38296568+npm[bot]@users.noreply.github.com", + "note": "npm 官方 bot", + }, + { + "id": "octokit", + "name": "octokit[bot]", + "email": "171388558+octokit[bot]@users.noreply.github.com", + "note": "GitHub 官方 Octokit bot", + }, ] _NAME_EMAIL_RE = re.compile(r"^[A-Za-z0-9._\-\[\]]+ <[^<>\s]+@[^<>\s]+>$")