dev.knotless.retargetPull

lexicons.knotless.dev

Documentation

Points an open pull at another target branch, another head branch, or both, as `knotless retarget` does, as the account logged in to this appview's web pages. Anyone who may close it changes its target branch; only its author its head branch, which must be in the repository it comes from. Requires the session cookie the pages' login sets.

main procedure

Points an open pull at another target branch, another head branch, or both, as `knotless retarget` does, as the account logged in to this appview's web pages. Anyone who may close it changes its target branch; only its author its head branch, which must be in the repository it comes from. Requires the session cookie the pages' login sets.

Input

Encodingapplication/json
base string Optional

The branch of the repository to merge it into, without refs/heads/.

maxLength: 255 bytes
head string Optional

The branch of the repository it comes from to bring in, without refs/heads/.

maxLength: 255 bytes
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

Errors

NotFound No such repository.
AuthenticationRequired No account is logged in to the pages, or its session has ended.
UpstreamFailure It was not retargeted, as the reason says: no such branch, or the account may not.
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": "Points an open pull at another target branch, another head branch, or both, as `knotless retarget` does, as the account logged in to this appview's web pages. Anyone who may close it changes its target branch; only its author its head branch, which must be in the repository it comes from. 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 retargeted, as the reason says: no such branch, or the account may not.",
      "name": "UpstreamFailure"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "base": {
          "description": "The branch of the repository to merge it into, without refs/heads/.",
          "maxLength": 255,
          "type": "string"
        },
        "head": {
          "description": "The branch of the repository it comes from to bring in, without refs/heads/.",
          "maxLength": 255,
          "type": "string"
        },
        "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": {},
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@