dev.knotless.retargetPull

Points an open pull at another target branch, another head branch, or both, as `knotless pull 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.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Showing version bafyreiccfybxu24ejjjfvzajqimz4t4xyncd5s2rokm7fel3yjxozzaefq. Show the latest

cid bafyreiccfybxu24ejjjfvzajqimz4t4xyncd5s2rokm7fel3yjxozzaefq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Points an open pull at another target branch, another head branch, or both, as `knotless pull 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"
    }
  },
  "description": "Points a pull at other branches as the account logged in to this appview's pages.",
  "id": "dev.knotless.retargetPull",
  "lexicon": 1
}