Hierarchy

  • default

Constructors

  • Represents a Forgejo instance.

    Parameters

    • url: string

      The URL of the Forgejo instance

    Returns default

Properties

cors: boolean
token?: Auth
url: URL
username: string

Methods

  • Check if logged in user is mentioned in the issue

    Parameters

    • issue: Issue

    Returns Promise<boolean>

  • Fetch and save comments for the issue objects

    Parameters

    • issue: Issue

    Returns Promise<Issue>

  • Get Issue and its comments

    Parameters

    • owner: string

      The owner of the repository

    • repo: string

      The name of the repository

    • id: number

      The ID of an issue

    Returns Promise<Issue>

  • Get Notification Thread

    Parameters

    • id: number

      The ID of a notification thread

    Returns Promise<Notification>

  • Get all notifications

    Returns Promise<Notification[]>

  • Get number of unread notifications

    Returns Promise<number>

  • Get access token

    Returns Auth

  • Get access token in header format for the fetch API

    Returns {
        Authorization: string;
    }

    • Authorization: string
  • Returns URL

  • Get logged in user

    Returns Promise<User>

  • Get the time at which the issue was last read

    Parameters

    • issue: Issue

    Returns Date

  • Mark Notification Read

    Parameters

    • id: number

      The ID of a notification thread

    Returns Promise<void>

  • Mark Notification Read for a specific repository

    Parameters

    • owner: string

      Name of the owner of the repository

    • repo: string

      Name of the repository

    Returns Promise<void>

  • Returns void

  • Authenticate with token

    Parameters

    • token: string

      access token

    Returns Promise<void>

Generated using TypeDoc