dev.knotless.listNotifications
What others did that concerns the account asking, as the appview has indexed it, the latest first: stars of its repositories, follows of it, invitations to join an organization it has yet to take up, while they stand, pulls and issues opened on the repositories it looks after (its own, those whose records name it a collaborator, and those of the organizations it joined), comments and reviews on its pulls and issues, and on those it commented on, after it did, pulls, issues and comments that mention it, and, for its own pulls, checks that failed and the merge queue turning them away. One record is one notification: a comment that mentions the author of what it is on is heard of as a comment, marked as mentioning them, and a review's line comments are heard of with it, counted. Leaves out its own doings, and accounts it blocked or that are taken down. Those of a private repository come from the appview's own index of its space, where its owner lets it keep one, while the account can read it: a mention of someone who cannot is never heard of. Requires authentication: a service token, or the session cookie the pages' login sets.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Query
query · GETParameters
query stringcursor
stringWhere the page before ended.
maxLength: 512
kind
stringOnly those of this kind: `mentions`, and comments heard of for another reason that mention the asker too; `reviews` asked of it, and comments that review its pulls; `comments` that do not review, on threads it is part of, subscribed to or watches; `pulls-and-issues` opened, on repositories it looks after or watches; `checks` that failed and the merge queue turning a pull away; `stars-and-follows`. A kind the appview does not know answers nothing.
knownValues: mentions | reviews | comments | pulls-and-issues | checks | stars-and-follows
limit
integerminimum: 1maximum: 100default: 50
Output
application/jsonErrors
AuthenticationRequired
No account asks.
#notification
objectOne thing another account did that concerns the asker.
Properties
checks
arrayFor `checks-failed`, the checks that failed at that run, one for each workflow; for an ejection by checks that failed, those. Absent otherwise.
maxLength: 64
Whether it is from before the asker last saw its notifications.
lineComments
integerFor a review, how many comments on the pull's lines were sent with it. Absent, none.
minimum: 1
mentioned
booleanWhether it mentions the asker too, though it is heard of for another reason: a comment on the asker's pull or issue that names them, say. Absent, it does not.
What it did: starred the asker's repository, followed the asker, opened a pull or an issue on a repository it looks after, commented on its pull or issue, or on one it commented on, mentioned the asker in a pull, an issue or a comment, asked it to review a pull that is not a draft, as its author or as the repository's owner or a collaborator, assigned the asker a pull or an issue as its owner or a collaborator (`assigned`), or invited the asker to join it as an organization; or, as a runner the repository names, found checks failing at the latest run of the asker's pull (`checks-failed`), or turned the pull away from the merge queue (`ejected`), while the pull is open. Or what the asker chose to hear of (dev.knotless.putSubscription), heard of for no other reason: a comment on a pull or an issue it subscribed to (`subscribed`), or on a repository it watches, a pull or an issue opened, a comment, or a release (`watching`), each since it chose; its `uri` says which.
knownValues: star | follow | pull | issue | comment | mention | review-requested | assigned | invite | checks-failed | ejected | subscribed | watching
reasonSubject
string · at-uriWhat it is about: for a comment, or a mention in one, the pull or issue it is on; for a pull, an issue, a mention in one, a review request, an assignment, checks that failed or an ejection, that pull or issue; for a star, the repository's record; for a release, the release. Absent for a follow or an invitation.
repo
refThe repository it is about, under the name it has now, if any.
reviewed
booleanFor `review-requested`, whether the asker has reviewed the pull, approving it or asking for changes, since it was asked to. Absent, it has not.
role
stringFor an invitation, the role it offers.
knownValues: admin | member
subjectState
stringThe state the pull or issue it is about is in now, as its page says. Absent for what is about no pull or issue.
knownValues: open | closed | merged
text
stringFor a pull, an issue or a comment, a mention in one, or a pull that asks for a review, the start of what it says, as Markdown: at most 1,000 characters. Absent when it says nothing.
maxLength: 4000
title
stringThe title of the pull or issue it is, or is on.
The record it wrote: a star, a follow, the organization's dev.knotless.orgMember record of the asker, a pull, an issue or a comment, or the pull, issue or comment that mentions the asker; for a review asked or an assignment by the owner or a collaborator, their dev.knotless.assignment record; for checks that failed, the dev.knotless.check of one of them; for an ejection, the runner's dev.knotless.queue record.
verdict
stringFor a comment that reviews a pull, what it found: `approve`, or `changes` to ask for changes.
knownValues: approve | changes
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
What the asking account chose to hear of repositories, pulls and issues.
-
dev.knotless.getFeed
queryWhat happened on the public repositories an appview has indexed, newest first.
-
The pulls or issues that concern an account, on any repository.
-
List notifications for the authenticated Zeens user. Merges likes, replies, follows, group-membership and group-photo events from the firehose.
-
The reactions to a pull or an issue, and to each comment on it.