Constructors
constructor
- new default(url, username): default
-
Parameters
-
url: string
-
username: string
Properties
username
username: string
Methods
findMentionsInIssue
- findMentionsInIssue(owner, repo, id): Promise<boolean>
-
Parameters
-
owner: string
-
repo: string
-
id: number
Returns Promise<boolean>
getIssue
- getIssue(owner, repo, id): Promise<Issue>
-
Parameters
-
owner: string
-
repo: string
-
id: number
Returns Promise<Issue>
getNumUnreadNotifications
- getNumUnreadNotifications(): Promise<number>
-
Returns Promise<number>
getTokenAuthHeader
-
Returns {
Authorization: string;
}
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>
setTokenAuth
- setTokenAuth(token): void
-
Returns void
Represents a Forgejo instance.