dev.knotless.getQueue

What is queued on each branch of a repository, in the order it lands, the batches being checked, the open pulls the queue turned away and why, and the batches it landed last, as the runners the repository names report them. No authentication; responses are not personalized.

Details · query
Kindquery
Authorityknotless.dev
Indexed
cid bafyreia73ef6rqvgzhgqz25jl5bobulhchjcycgw72roihx3732hibblg4

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "batchView": {
      "description": "A batch being checked, or landing once its checks have passed.",
      "properties": {
        "checks": {
          "description": "The newest run of each workflow at its commit.",
          "items": {
            "ref": "dev.knotless.defs#checkView",
            "type": "ref"
          },
          "type": "array"
        },
        "commit": {
          "description": "The commit it would leave the branch at, in hex.",
          "type": "string"
        },
        "size": {
          "description": "How many pulls are in it.",
          "minimum": 1,
          "type": "integer"
        },
        "startedAt": {
          "description": "When its first run started.",
          "format": "datetime",
          "type": "string"
        },
        "state": {
          "knownValues": [
            "checking",
            "landing"
          ],
          "type": "string"
        }
      },
      "required": [
        "commit",
        "state",
        "size",
        "checks"
      ],
      "type": "object"
    },
    "branchView": {
      "description": "A branch's merge queue.",
      "properties": {
        "batches": {
          "description": "The batches being checked or landing, in the order they land: a pull names the one it is in.",
          "items": {
            "ref": "#batchView",
            "type": "ref"
          },
          "type": "array"
        },
        "branch": {
          "description": "The branch's name.",
          "type": "string"
        },
        "pulls": {
          "description": "In the order they land.",
          "items": {
            "ref": "#queuedView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "branch",
        "pulls",
        "batches"
      ],
      "type": "object"
    },
    "ejectedView": {
      "description": "A pull the merge queue turned away.",
      "properties": {
        "checks": {
          "description": "The checks of its batch that did not pass, if they are why.",
          "items": {
            "ref": "dev.knotless.defs#checkView",
            "type": "ref"
          },
          "type": "array"
        },
        "ejectedAt": {
          "format": "datetime",
          "type": "string"
        },
        "pull": {
          "ref": "dev.knotless.defs#itemView",
          "type": "ref"
        },
        "reason": {
          "description": "Why, as the runner said.",
          "type": "string"
        }
      },
      "required": [
        "pull",
        "ejectedAt",
        "checks"
      ],
      "type": "object"
    },
    "landedView": {
      "description": "A batch the merge queue landed.",
      "properties": {
        "branch": {
          "description": "The branch's name.",
          "type": "string"
        },
        "commit": {
          "description": "The commit it left the branch at, in hex.",
          "type": "string"
        },
        "landedAt": {
          "format": "datetime",
          "type": "string"
        },
        "pulls": {
          "description": "In the order they were squashed onto the branch.",
          "items": {
            "ref": "dev.knotless.defs#itemView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "branch",
        "commit",
        "pulls"
      ],
      "type": "object"
    },
    "main": {
      "description": "What is queued on each branch of a repository, in the order it lands, the batches being checked, the open pulls the queue turned away and why, and the batches it landed last, as the runners the repository names report them. No authentication; responses are not personalized.",
      "errors": [
        {
          "description": "No such repository; or this appview keeps no index, so it knows no pulls.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "branches": {
              "description": "Each branch with pulls queued, by name.",
              "items": {
                "ref": "#branchView",
                "type": "ref"
              },
              "type": "array"
            },
            "ejected": {
              "description": "The open pulls the queue turned away, newest first.",
              "items": {
                "ref": "#ejectedView",
                "type": "ref"
              },
              "type": "array"
            },
            "landed": {
              "description": "The last few batches landed, newest first.",
              "items": {
                "ref": "#landedView",
                "type": "ref"
              },
              "type": "array"
            },
            "typical": {
              "description": "How long its merge queue typically takes; absent with no batch landed to go by.",
              "ref": "dev.knotless.defs#queueTypicalView",
              "type": "ref"
            }
          },
          "required": [
            "branches",
            "ejected",
            "landed"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "repo": {
            "description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "queuedView": {
      "description": "A pull in a merge queue.",
      "properties": {
        "batch": {
          "description": "The batch it is in, by its place in its branch's `batches`.",
          "minimum": 0,
          "type": "integer"
        },
        "checks": {
          "description": "Until it is in a batch, the newest run of each of its pre-flights.",
          "items": {
            "ref": "dev.knotless.defs#checkView",
            "type": "ref"
          },
          "type": "array"
        },
        "pull": {
          "ref": "dev.knotless.defs#itemView",
          "type": "ref"
        },
        "queuedAt": {
          "format": "datetime",
          "type": "string"
        },
        "said": {
          "description": "Where it stands, in words: `Queued, 3rd of 5, running its checks`, `In a batch of 4 being checked` or `Landing`.",
          "type": "string"
        },
        "stage": {
          "description": "Where it stands: `queued`, with no run of its pre-flights seen yet; `preflight`, its pre-flights running at its head; `again`, one of them run again as one failed on an older tip of its branch; `ready`, its pre-flights passed, waiting for the next batch; `review`, its pre-flights passed, waiting for a review of its head from its branch's gates; `checking`, in a batch being checked; `landing`; or `stacked`, waiting for the pull below it to land.",
          "knownValues": [
            "queued",
            "preflight",
            "again",
            "ready",
            "review",
            "checking",
            "landing"
          ],
          "type": "string"
        }
      },
      "required": [
        "pull",
        "queuedAt",
        "said"
      ],
      "type": "object"
    }
  },
  "description": "A repository's merge queues.",
  "id": "dev.knotless.getQueue",
  "lexicon": 1
}