dev.knotless.labelItem

Rewrites the dev.knotless.label record about a pull or an issue in the account logged in to this appview's web pages, as `knotless pull label` and `knotless pull label --undo` do: the repository's owner and collaborators put on any label it defines, and its triagers those of their scopes. Putting on an exclusive label takes the others of its scope off. Requires the session cookie the pages' login sets.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

label

requiredstring

The name of a label the repository defines.

  • maxLength: 100
  • maxGraphemes: 50

removed

boolean

True to take it off rather than put it on.

  • default: false

repo

requiredstring · at-uri

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

subject

requiredstring · at-uri

The dev.knotless.pull or dev.knotless.issue.

Output

application/json

labels

requiredarray

The labels it carries now, in the order the repository defines them.

itemsref

Errors

NotFound

No such repository.

AuthenticationRequired

No account is logged in to the pages, or its session has ended.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Takes a label away from a repository.

  • Defines a label pulls and issues of a repository may carry.

  • The labels one account puts on a pull or issue, from those its repository defines.

  • 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.

  • Hides a pull, an issue or a comment from a repository, or shows it again, as the repository's owner, logged in to this appview's pages.