dev.knotless.assignItem
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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"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.",
"errors": [
{
"description": "No such repository.",
"name": "NotFound"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "The account assigned, or asked to review.",
"format": "did",
"type": "string"
},
"removed": {
"default": false,
"description": "True to take the account off it, or stop asking, rather than assign or ask.",
"type": "boolean"
},
"repo": {
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
"format": "at-uri",
"type": "string"
},
"role": {
"default": "assignee",
"description": "`assignee` to assign it, or `reviewer` to ask for a review of a pull.",
"knownValues": [
"assignee",
"reviewer"
],
"maxLength": 64,
"type": "string"
},
"subject": {
"description": "The dev.knotless.pull or dev.knotless.issue.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"repo",
"subject",
"did"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"assignees": {
"description": "Those it is assigned to now.",
"items": {
"ref": "dev.knotless.defs#actorView",
"type": "ref"
},
"type": "array"
},
"reviewers": {
"description": "For a pull, those asked to review it now; for an issue, none.",
"items": {
"ref": "dev.knotless.defs#actorView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"assignees",
"reviewers"
],
"type": "object"
}
},
"type": "procedure"
}
},
"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.",
"id": "dev.knotless.assignItem",
"lexicon": 1
}