PatchFlowDocs
Reference

Configuration reference

Every repository, timing, model, gate, and operational-policy setting.

Open Markdown ↗

Complete example

patchflow.config.json
{
  "repos": [{
    "url": "https://github.com/acme/checkout",
    "startingRef": "main",
    "packages": ["stripe"],
    "setupCommand": "auto",
    "testCommand": "npm test",
    "testGate": "checks",
    "requiredChecks": ["lint", "test"]
  }],
  "pollIntervalMinutes": 60,
  "model": "composer-2.5",
  "checkTimeoutMinutes": 15,
  "checkPollIntervalSeconds": 20,
  "policies": {
    "allowedUpdateTypes": ["patch", "minor", "major"],
    "packageAllowlist": [],
    "packageDenylist": [],
    "maxConcurrentMigrations": 1,
    "maxRunsPerCycle": 10,
    "cooldownMinutes": 30,
    "draftPullRequests": true,
    "maxRetries": 1
  }
}

Repository fields

FieldDefaultNotes
startingRefmainAgent base branch
setupCommandautoauto, none, or a shell command
testCommandnpm testRuns only after setup succeeds
testGateautoauto, checks, or local
requiredChecks[]Exact GitHub Check names

Policy limits

FieldRange/default
maxConcurrentMigrations1–10; default 1
maxRunsPerCycle1–100; default 10
cooldownMinutes0 or greater; default 0
maxRetries0–3; default 1
draftPullRequestsdefault true
NextRun states and labels