dev.knotless.queuePull

lexicons.knotless.dev

Documentation

Puts an open pull at the back of its target branch's merge queue, as `knotless merge --queue` does, as the account logged in to this appview's web pages, and returns at once with its place: a runner the repository names lands it with the batch it is in once that passes. One queued already keeps its place. The owner and collaborators may, in a repository that names runners. Requires the session cookie the pages' login sets.

main procedure

Puts an open pull at the back of its target branch's merge queue, as `knotless merge --queue` does, as the account logged in to this appview's web pages, and returns at once with its place: a runner the repository names lands it with the batch it is in once that passes. One queued already keeps its place. The owner and collaborators may, in a repository that names runners. Requires the session cookie the pages' login sets.

Input

Encodingapplication/json
pull stringat-uri Required

The dev.knotless.pull record.

repo stringat-uri Required

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

Output

Encodingapplication/json
base string Required

The branch whose queue it is in.

of integer Required

How many are queued there.

position integer Required

Its place in that queue, from 1.

Errors

NotFound No such repository.
AuthenticationRequired No account is logged in to the pages, or its session has ended.
UpstreamFailure It was not queued, as the reason says.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Puts an open pull at the back of its target branch's merge queue, as `knotless merge --queue` does, as the account logged in to this appview's web pages, and returns at once with its place: a runner the repository names lands it with the batch it is in once that passes. One queued already keeps its place. The owner and collaborators may, in a repository that names runners. Requires the session cookie the pages' login sets.",
  "errors": [
    {
      "description": "No such repository.",
      "name": "NotFound"
    },
    {
      "description": "No account is logged in to the pages, or its session has ended.",
      "name": "AuthenticationRequired"
    },
    {
      "description": "It was not queued, as the reason says.",
      "name": "UpstreamFailure"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "pull": {
          "description": "The dev.knotless.pull record.",
          "format": "at-uri",
          "type": "string"
        },
        "repo": {
          "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "repo",
        "pull"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "base": {
          "description": "The branch whose queue it is in.",
          "type": "string"
        },
        "of": {
          "description": "How many are queued there.",
          "minimum": 1,
          "type": "integer"
        },
        "position": {
          "description": "Its place in that queue, from 1.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "base",
        "position",
        "of"
      ],
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@