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

My AI agent now opens its own pull requests every Monday

说明与用途

Patchpilot 现在每周自动运行,升级依赖,修复代码,并自动打开拉取请求,无需手动操作

问题

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