dev.knotless.forkRepo

lexicons.knotless.dev

Documentation

Copies a repository, every branch and tag, into a new dev.knotless.repo in the account logged in to this appview's web pages, naming it as forked from the first, as `knotless fork` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.

main procedure

Copies a repository, every branch and tag, into a new dev.knotless.repo in the account logged in to this appview's web pages, naming it as forked from the first, as `knotless fork` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.

Input

Encodingapplication/json
name string Optional

The fork's name: the repository's own when absent.

maxLength: 100 bytes
repo stringat-uri Required

The repository to fork: its dev.knotless.repo record, as dev.knotless.getRepo takes it.

Output

Encodingapplication/json

Errors

NotFound No such repository.
InvalidRequest The account owns the repository, has a repository by that name already, or the name is not one a repository can have.
AuthenticationRequired No account is logged in to the pages, or its session has ended.
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": "Copies a repository, every branch and tag, into a new dev.knotless.repo in the account logged in to this appview's web pages, naming it as forked from the first, as `knotless fork` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.",
  "errors": [
    {
      "description": "No such repository.",
      "name": "NotFound"
    },
    {
      "description": "The account owns the repository, has a repository by that name already, or the name is not one a repository can have.",
      "name": "InvalidRequest"
    },
    {
      "description": "No account is logged in to the pages, or its session has ended.",
      "name": "AuthenticationRequired"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "name": {
          "description": "The fork's name: the repository's own when absent.",
          "maxLength": 100,
          "type": "string"
        },
        "repo": {
          "description": "The repository to fork: its dev.knotless.repo record, as dev.knotless.getRepo takes it.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "repo"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "ref": "dev.knotless.defs#repoMade",
      "type": "ref"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@