Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to stop pull request spam on an open source repo

Описание и применение

Внедрение защиты ветки, обязательных обзоров, CODEOWNERS и канала для новых участников снижает спам‑pull‑реквесты, сохраняя репозиторий открытым для настоящих вкладчиков.

Задача

Open source repositories often receive spam pull requests that consume maintainers’ time and clutter the merge queue.

Результат

Implementing branch protection, required reviews, CODEOWNERS, and a contributor funnel significantly reduces spam pull requests while keeping the repository open to genuine contributors.

Рабочий процесс

  • 1. Protect the main branch (e.g., main or master).
  • 2. Require passing CI checks and at least one approving review before merge.
  • 3. Add CODEOWNERS for sensitive files to auto‑assign reviewers.
  • 4. Create issue and pull‑request templates that ask for motivation, reproduction steps, and screenshots.
  • 5. For first‑time contributors, require opening an issue or discussion before a pull request.
  • 6. Close spam pull requests quickly with a brief explanation and link to CONTRIBUTING.md.
  • 7. Restrict write access to a minimal set of trusted maintainers.
  • 8. If abuse persists, consider disabling pull requests for strangers.

Доказательства

Lock the merge path, gate first‑time contributors, and route strangers to issues or discussions first.

Источник

Require passing checks and at least one approving review before merge.

Источник

Add CODEOWNERS for the files that attract drive‑by changes.

Источник

  • Дата записи: 2026-09-19T06:45:40.089Z