Interface GitHubNotification

Represents a single GitHub notification thread.

interface GitHubNotification {
    id: string;
    last_read_at: null | string;
    reason: NotificationReason;
    repository: NotificationRepository;
    subject: NotificationSubject;
    subscription_url: string;
    unread: boolean;
    updated_at: string;
    url: string;
}

Properties

id: string

Unique thread ID (string)

last_read_at: null | string

ISO 8601 timestamp of when the thread was last read

The reason this notification was triggered

The repository the notification belongs to

The subject (Issue, PR, Release, etc.) that triggered the notification

subscription_url: string

API URL for subscriptions on this thread

unread: boolean

Whether this notification is unread

updated_at: string

ISO 8601 timestamp of the last activity on this thread

url: string

API URL for this notification thread