{
  "version": 2,
  "repositories": {
    "uv": {
      "name": "astral-sh/uv",
      "id": 699532645
    },
    "uv-dev": {
      "name": "astral-sh/uv-dev",
      "id": 1302176231
    }
  },
  "rules": [
    {
      "repository": "uv-dev",
      "on": {
        "pull_request": ["ready_for_review"]
      },
      "workflow": "promote-pull-request.yml"
    },
    {
      "repository": "uv-dev",
      "on": {
        "pull_request": ["edited"]
      },
      "conditions": {
        "/changes/base/ref/from": { "exists": true }
      },
      "allow_draft": true,
      "workflow": "pull-request-conflicts.yml"
    },
    {
      "repository": "uv",
      "on": {
        "workflow_run": ["completed"]
      },
      "head_repositories": ["uv", "uv-dev"],
      "conditions": {
        "/workflow_run/conclusion": {
          "one_of": ["failure", "timed_out", "startup_failure"]
        },
        "/workflow_run/event": {
          "one_of": ["pull_request", "push", "schedule", "workflow_dispatch"]
        },
        "/workflow/path": {
          "not": ".github/workflows/diagnose-workflow-failure.yml"
        }
      },
      "workflow": "diagnose-workflow-failure.yml",
      "inputs": {
        "run": "/workflow_run/id",
        "head_sha": "/workflow_run/head_sha"
      }
    },
    {
      "repository": "uv-dev",
      "on": {
        "workflow_run": ["completed"]
      },
      "head_repositories": ["uv-dev"],
      "conditions": {
        "/workflow_run/conclusion": {
          "one_of": ["failure", "timed_out", "startup_failure"]
        },
        "/workflow_run/event": {
          "one_of": ["pull_request", "push", "schedule", "workflow_dispatch"]
        },
        "/workflow/path": {
          "not": ".github/workflows/diagnose-workflow-failure.yml"
        }
      },
      "workflow": "diagnose-workflow-failure.yml",
      "inputs": {
        "run": "/workflow_run/id",
        "head_sha": "/workflow_run/head_sha"
      }
    }
  ]
}
