Properties
Optional
token
token?: Auth
username
username: string
Methods
findMentionsInIssue
- findMentionsInIssue(issue): Promise<boolean>
-
Returns Promise<boolean>
getIssue
- getIssue(owner, repo, id): Promise<Issue>
-
Parameters
-
owner: string
-
repo: string
-
id: number
Returns Promise<Issue>
getNotificationThread
- getNotificationThread(id): Promise<Notification>
-
Returns Promise<Notification>
getNotifications
- getNotifications(): Promise<Notification[]>
-
Returns Promise<Notification[]>
getNumUnreadNotifications
- getNumUnreadNotifications(): Promise<number>
-
Returns Promise<number>
getTokenAuth
- getTokenAuth(): Auth
-
Returns Auth
getTokenAuthHeader
-
Returns {
Authorization: string;
}
getUrl
- getUrl(): URL
-
Returns URL
getUser
- getUser(): Promise<User>
-
Returns Promise<User>
lastReadTime
- lastReadTime(issue): Date
-
Returns Date
markNotificationRead
- markNotificationRead(id): Promise<void>
-
Returns Promise<void>
markNotificationReadForRepo
- markNotificationReadForRepo(owner, repo): Promise<void>
-
Parameters
-
owner: string
-
repo: string
Returns Promise<void>
setCors
- setCors(): void
-
Returns void
setTokenAuth
- setTokenAuth(token): Promise<void>
-
Returns Promise<void>
Represents a Forgejo instance.