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

My AI agent now opens its own pull requests every Monday

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

Патчпилот теперь автоматически запускается каждую неделю, обновляет зависимости, исправляет код и открывает пулл-реквесты без ручного вмешательства

Задача

Automating dependency upgrades and fixes without manual intervention

Результат

Patchpilot now runs automatically every Monday, upgrading the smallest outdated dependency, fixing code, and opening a PR without manual triggers, while avoiding unnecessary API calls during quiet weeks

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

  • Add a workflow file to the repo
  • Schedule the action to run every Monday at 06:00 UTC
  • The action checks for packages whose newest PyPI release is outside declared ranges
  • Selects the smallest version jump (patch, minor, major) among candidates
  • Skips packages already having a patchpilot/upgrade-* branch
  • Runs patchpilot in a Docker sandbox with the repo cloned but without secrets
  • Patchpilot upgrades the package, runs tests, applies fixes via AI, and commits changes
  • If tests pass, patchpilot opens a pull request as github-actions[bot]
  • If nothing to upgrade, the action exits successfully without API calls

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

So I made patchpilot a GitHub Action. You add one workflow file, and every Monday it picks an outdated package, upgrades it in a sandbox, fixes the code until the tests pass, and opens a pull request.

Источник

It also flagged a README line that still said "marshmallow 3", and deliberately left it alone to keep the PR focused.

Источник

When every outdated package already has an open PR, patchpilot prints "Nothing to upgrade" and exits successfully, without a single API call.

Источник

  • Дата записи: 2026-11-03T03:28:53.009Z