{
  "format": "dockrun-bundle",
  "version": 1,
  "exportedAt": "2026-11-12T00:00:00Z",
  "workspaces": [],
  "workflows": [
    {
      "id": "B554F727-AB4E-520F-A361-1BA955A6A4B3",
      "name": "Pull all my repos",
      "summary": "Runs git pull --ff-only in every repository inside a folder. Repos with uncommitted changes are skipped.",
      "variables": [
        {
          "name": "folder",
          "defaultValue": "~/Projects",
          "summary": "The folder that holds your repositories"
        }
      ],
      "steps": [
        {
          "id": "A15319AC-B4C0-5EFF-9FFE-38D8BEEE4E67",
          "actionID": "script.run",
          "input": {
            "language": "zsh",
            "code": "# Runs \"git pull --ff-only\" in every repository directly inside a folder. Repositories with uncommitted\n# changes are skipped, and nothing is merged or rebased: a pull that can't fast-forward is reported.\nfolder=\"${*:-~/Projects}\"; folder=\"${folder/#\\~/$HOME}\"\n[ -d \"$folder\" ] || { echo \"No such folder: $folder\" >&2; exit 1 }\nexport GIT_TERMINAL_PROMPT=0   # never wait for a password\nok=0; skipped=0; failed=0\nfor git in \"$folder\"/*/.git(N); do\n  repo=\"${git:h}\"; name=\"${repo:t}\"\n  if [ -n \"$(git -C \"$repo\" status --porcelain 2>/dev/null)\" ]; then\n    echo \"SKIP  $name (uncommitted changes)\"; skipped=$((skipped + 1)); continue\n  fi\n  if out=$(git -C \"$repo\" pull --ff-only 2>&1); then\n    echo \"OK    $name: ${out##*$'\\n'}\"; ok=$((ok + 1))\n  else\n    echo \"FAIL  $name: ${out##*$'\\n'}\"; failed=$((failed + 1))\n  fi\ndone\necho \"Pulled $ok, skipped $skipped, failed $failed in $folder\"\n[ \"$failed\" -eq 0 ]\n",
            "args": "{{var.folder}}"
          },
          "condition": {
            "kind": "always"
          },
          "onFailure": "stop",
          "timeout": 300,
          "isEnabled": true,
          "title": "Pull every repository"
        }
      ]
    }
  ]
}
