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

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.13.0 Latest 2 packages, 1 image

1
10
92 lines · 3.1 KB Raw History
{
  "lexicon": 1,
  "id": "dev.knotless.assignItem",
  "description": "Assigns a pull or an issue to an account, or asks it to review a pull, or no longer, as the account logged in to this appview's pages.",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "As `knotless pull assign`, `unassign`, `ask-review` and `unask-review` do: the repository's owner and collaborators rewrite their dev.knotless.assignment record about it, and a pull's author asks for reviews in the pull itself. A pull's author stops asking only those it asked, and a maintainer only those maintainers asked. Requires the session cookie the pages' login sets.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "subject",
            "did"
          ],
          "properties": {
            "repo": {
              "type": "string",
              "format": "at-uri",
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it."
            },
            "subject": {
              "type": "string",
              "format": "at-uri",
              "description": "The dev.knotless.pull or dev.knotless.issue."
            },
            "did": {
              "type": "string",
              "format": "did",
              "description": "The account assigned, or asked to review."
            },
            "role": {
              "type": "string",
              "maxLength": 64,
              "knownValues": [
                "assignee",
                "reviewer"
              ],
              "default": "assignee",
              "description": "`assignee` to assign it, or `reviewer` to ask for a review of a pull."
            },
            "removed": {
              "type": "boolean",
              "default": false,
              "description": "True to take the account off it, or stop asking, rather than assign or ask."
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "assignees",
            "reviewers"
          ],
          "properties": {
            "assignees": {
              "type": "array",
              "description": "Those it is assigned to now.",
              "items": {
                "type": "ref",
                "ref": "dev.knotless.defs#actorView"
              }
            },
            "reviewers": {
              "type": "array",
              "description": "For a pull, those asked to review it now; for an issue, none.",
              "items": {
                "type": "ref",
                "ref": "dev.knotless.defs#actorView"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "NotFound",
          "description": "No such repository."
        },
        {
          "name": "AuthenticationRequired",
          "description": "No account is logged in to the pages, or its session has ended."
        }
      ]
    }
  }
}