~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

7
70 lines · 2.1 KB Raw History
{
  "lexicon": 1,
  "id": "dev.knotless.removeLabel",
  "description": "Takes a label away from a repository.",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Takes the label out of the repository's dev.knotless.repo record, as `knotless labels remove` does: it comes off every pull and issue it was on, and back on them if it is defined again. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "name"
          ],
          "properties": {
            "repo": {
              "type": "string",
              "format": "at-uri",
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it."
            },
            "name": {
              "type": "string",
              "maxLength": 100,
              "description": "The label's name."
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "labels"
          ],
          "properties": {
            "labels": {
              "type": "array",
              "description": "The labels it defines now.",
              "items": {
                "type": "ref",
                "ref": "dev.knotless.repo#label"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "NotFound",
          "description": "No such repository."
        },
        {
          "name": "InvalidRequest",
          "description": "The repository defines no label by that name."
        },
        {
          "name": "AuthenticationRequired",
          "description": "No account is logged in to the pages, or its session has ended."
        },
        {
          "name": "Forbidden",
          "description": "The account logged in is not the repository's owner."
        }
      ]
    }
  }
}