Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/scheduled-agent-checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
exit 0
fi

# 默认携带全部免费 AI 共同作者身份(与 docs/contributor-catalog.md 同步)。
# 想选择部分身份时,在仓库变量 AGENT_CHECKIN_AUTHORS 里用英文分号覆盖
authors="${AGENT_CHECKIN_AUTHORS:-Codex <noreply@openai.com>;Claude <noreply@anthropic.com>;Copilot <noreply@github.com>;ChatGPT <noreply@openai.com>;Gemini <noreply@google.com>;Aider <aider@aider.ch>;Cline <noreply@cline.bot>;Cursor <noreply@cursor.sh>;Windsurf <noreply@windsurf.com>}"
# 默认携带 Codex、Claude 与两位维护者;其他仓库可设置仓库变量
# AGENT_CHECKIN_AUTHORS(英文分号分隔)选择自己的身份组合
authors="${AGENT_CHECKIN_AUTHORS:-Codex <noreply@openai.com>;Claude <noreply@anthropic.com>;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
Expand Down
8 changes: 5 additions & 3 deletions docs/contributor-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | 展示名 | 尾注格式 | 说明 |
|---|---|---|---|
Expand Down Expand Up @@ -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`(工作流正则已支持方括号),
Expand Down Expand Up @@ -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`,然后手动运行一次该工作流。
18 changes: 18 additions & 0 deletions scripts/build_contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]+>$")
Expand Down