dev.knotless.state

lexicons.knotless.dev

Documentation

Kept in the account of whoever changed it. Readers take the latest from someone allowed to make it: the subject's author, the repository's owner or a collaborator; `merged` only from the latter two; for a thread, also the pull's author.

main record

Kept in the account of whoever changed it. Readers take the latest from someone allowed to make it: the subject's author, the repository's owner or a collaborator; `merged` only from the latter two; for a thread, also the pull's author.

Record Key tid Timestamp-based ID

Properties

base string Optional

For a pull, the branch it targets from here on, without refs/heads/: set when the branch it targeted was renamed.

maxLength: 255 bytes
commit string Optional

The hex object ID of the merge commit, for `merged`.

maxLength: 64 bytesminLength: 40 bytes
createdAt string datetime Required

An RFC 3339 formatted timestamp.

from string Optional

For `merged`, the hex object ID the base was at before the merge: from..commit is what the pull brought in, whose commits readers may then show as its author's.

maxLength: 64 bytesminLength: 40 bytes
pull string at-uri Optional

For `closed` on an issue, the dev.knotless.pull whose merge closed it, as its title or body named the issue after a closing keyword such as `Fixes`.

state string Optional

`merged` applies to pulls only; `resolved` and `open`, to a thread. Absent when the record only sets `base`: the state stands.

maxLength: 64 bytes
Known values: open, closed, merged, resolved
subject string at-uri Required

The dev.knotless.pull or dev.knotless.issue whose state changed; or the dev.knotless.comment, with a `line`, that starts a thread.

View raw schema
{
  "description": "Kept in the account of whoever changed it. Readers take the latest from someone allowed to make it: the subject's author, the repository's owner or a collaborator; `merged` only from the latter two; for a thread, also the pull's author.",
  "key": "tid",
  "record": {
    "properties": {
      "base": {
        "description": "For a pull, the branch it targets from here on, without refs/heads/: set when the branch it targeted was renamed.",
        "maxLength": 255,
        "type": "string"
      },
      "commit": {
        "description": "The hex object ID of the merge commit, for `merged`.",
        "maxLength": 64,
        "minLength": 40,
        "type": "string"
      },
      "createdAt": {
        "format": "datetime",
        "type": "string"
      },
      "from": {
        "description": "For `merged`, the hex object ID the base was at before the merge: from..commit is what the pull brought in, whose commits readers may then show as its author's.",
        "maxLength": 64,
        "minLength": 40,
        "type": "string"
      },
      "pull": {
        "description": "For `closed` on an issue, the dev.knotless.pull whose merge closed it, as its title or body named the issue after a closing keyword such as `Fixes`.",
        "format": "at-uri",
        "type": "string"
      },
      "repo": {
        "description": "The repository the pull or issue is on.",
        "ref": "dev.knotless.defs#repoRef",
        "type": "ref"
      },
      "state": {
        "description": "`merged` applies to pulls only; `resolved` and `open`, to a thread. Absent when the record only sets `base`: the state stands.",
        "knownValues": [
          "open",
          "closed",
          "merged",
          "resolved"
        ],
        "maxLength": 64,
        "type": "string"
      },
      "subject": {
        "description": "The dev.knotless.pull or dev.knotless.issue whose state changed; or the dev.knotless.comment, with a `line`, that starts a thread.",
        "format": "at-uri",
        "type": "string"
      }
    },
    "required": [
      "repo",
      "subject",
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}

Lexicon Garden

@