{
  "morphyFlow": 1,
  "name": "Small change",
  "tagline": "A builder in its own copy opens a pull request; a reviewer reads it on GitHub until it’s ready for you to merge.",
  "description": "For a fix or a small feature. The builder works in its own copy of your repository (a git worktree on its own branch), runs the tests and opens a pull request. The reviewer reads it with GitHub’s command line and leaves its review there; the builder fixes what it asks for on the same branch, until the reviewer approves. Then the run ends, and the pull request waits for you to merge. Needs git and GitHub CLI (gh), signed in.",
  "kind": "Development",
  "brief": "Changes go through a branch and a pull request, and the user merges. Never push to the main branch, force-push or delete branches.",
  "code": true,
  "mixed": false,
  "start": {
    "split": false,
    "text": "",
    "schedule": {
      "every": "off",
      "at": "09:00",
      "day": 1
    }
  },
  "steps": [
    {
      "ref": "builder",
      "kind": "chat",
      "title": "Builder",
      "job": "You work in your own copy of the repository, on your own branch. Make the change you are asked for, run the tests, commit, `git push -u origin HEAD`, then `gh pr create --fill`. Answer with the pull request’s link and a short summary. When the reviewer asks for changes, fix them on the same branch, push, and answer with the same link. When its answer starts with APPROVED, answer with the link and “Ready for you to merge.”",
      "provider": "",
      "model": "",
      "folder": "worktree"
    },
    {
      "ref": "reviewer",
      "kind": "chat",
      "title": "Reviewer",
      "job": "You get a pull request’s link. Read it with `gh pr view <link>` and `gh pr diff <link>`: does it do what was asked, and does nothing break? Leave your review on GitHub (`gh pr review <link> --comment -b \"…\"`, or `--request-changes`). Answer `APPROVED <link>` when it is ready to merge, else the changes to make, as a short list.",
      "provider": "",
      "model": "",
      "folder": "repo"
    },
    {
      "ref": "merge",
      "kind": "note",
      "title": "Ready to merge"
    }
  ],
  "arrows": [
    {
      "from": "start",
      "to": "builder",
      "mode": "each",
      "ask": false
    },
    {
      "from": "builder",
      "to": "reviewer",
      "mode": "each",
      "ask": false
    },
    {
      "from": "reviewer",
      "to": "builder",
      "mode": "each",
      "ask": false
    },
    {
      "from": "builder",
      "to": "merge",
      "mode": "each",
      "ask": false
    }
  ]
}
