feat: Agent 自助添加/移除/验证贡献者身份 - #27
Merged
Merged
Conversation
Add a self-serve mode so any coding agent can add, remove, or verify co-author contributor identities with minimal configuration: - build_contributors.py: new --apply (branch + commit with trailers), --remove (drop identities from catalog + script), --check (verify presence in recent commits) commands. - docs/add-contributors-with-agent.md: agent-facing manual (add/remove/ verify + pitfalls). - contributor-catalog.md: document how to remove an identity and that history still counts on the Contributors page. - AGENTS.md / CLAUDE.md: per-agent entry points pointing to the manual. Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
让任意 Agent(Codex / Claude Code / Gemini CLI / Cursor 等)在任意仓库里零配置自助完成「添加 / 移除 / 验证」贡献者身份:
scripts/build_contributors.py新增三个命令:--apply --tools codex,claude,renovate:自动建分支 + 提交(带尾注)+ 记录 CSV;--remove --tools renovate:从目录与脚本删除该身份(停止再新增);--check --tools codex:检查最近 100 提交是否出现该身份(PRESENT/ABSENT)。docs/add-contributors-with-agent.md:给任意 Agent 的操作手册(三步 + 注意事项)。docs/contributor-catalog.md:新增「如何移除身份」章节(明确历史提交仍计入页面)。AGENTS.md/CLAUDE.md:为不同 Agent 提供入口,指向自助命令。验证
--apply(建分支/提交/3 条尾注)→--check(PRESENT)→--remove(从列表消失)→ py_compile OK。