# 我们利用 Git 的 -author 参数，成功阻止了 GitHub 仓库中的 AI 机器人垃圾信息

- 来源：Hacker News 热门（buzzing.cc 中文翻译）
- 作者：ildari
- 发布时间：2026-05-19 00:38
- AIHOT 分数：63
- AIHOT 链接：https://aihot.virxact.com/items/cmpbgekib1762slnzynqso0hc
- 原文链接：https://archestra.ai/blog/only-responsible-ai

## AI 摘要

一个团队利用 Git 的 --author 参数，成功阻止了 GitHub 仓库中的 AI 机器人垃圾信息，并在博客中分享了这一方法的具体实现，展示了其在实践中有效遏制自动化垃圾提交的效果。

## 正文

Written by

Ildar Iskhakov, CTO

The End of Open Source as We Know It

Fighting Back

Doing It in GitHub

main

main

--author

+@users.noreply.github.com

gh api users/their-username --jq '.id' git commit \ --author="their-username " \ -m "chore: add their-username to external contributors"

gh api users/their-username --jq '.id' git commit \ --author="their-username " \ -m "chore: add their-username to external contributors"

main

Onboarding on our website with ethical AI rules and a CAPTCHA: https://archestra.ai/contributor-onboard

A GitHub Action that fires on submission, looks up the user's GitHub ID, adds their handle to an EXTERNAL_CONTRIBUTORS.md file, and pushes a commit to main authored under their account.

EXTERNAL_CONTRIBUTORS.md

main

The user becomes whitelisted and gets access to the repo.

Final Words
