dev.knotless.setItemState

Writes a dev.knotless.state record in the account logged in to this appview's web pages, as `knotless pull close`, `reopen`, `resolve` and `unresolve` do. It counts if that account opened the pull or issue (or the thread), or owns or collaborates on the repository. Requires the session cookie the pages' login sets.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

repo

requiredstring · at-uri

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

state

requiredstring

What it is to be: `closed`, or `open` again; for a thread, `resolved`, or `open` again. Merging a pull is another thing.

  • maxLength: 64
  • knownValues: open | closed | resolved

subject

requiredstring · at-uri

The dev.knotless.pull or dev.knotless.issue; or the dev.knotless.comment starting a thread on a pull's lines.

Output

application/json

uri

requiredstring · at-uri

The dev.knotless.state record written.

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.

  • A pull or issue opened, closed or merged, or a pull pointed at another target branch; or a thread on a pull's lines resolved or opened again.

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

  • Reacts to a pull, an issue or a comment as the account logged in to this appview's pages.

  • Puts a label on a pull or an issue, or takes it off, as the account logged in to this appview's pages.

  • Changes what a pull, an issue or a comment says, as its author, logged in to this appview's pages.