Hierarchy

  • default

Constructors

  • Represents a Forgejo instance.

    Parameters

    • url: string

      The URL of the Forgejo instance

    • username: string

      username of the logged in user

    Returns default

Properties

token?: Auth
url: URL
username: string

Methods

  • Check if logged in user is mentioned in the issue

    Parameters

    • owner: string
    • repo: string
    • id: number

    Returns Promise<boolean>

  • Parameters

    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>

  • Returns Auth

  • Returns {
        Authorization: string;
    }

    • Authorization: string
  • Get logged in user

    Returns Promise<User>

  • Get the time at which the issue was last read

    Parameters

    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>

  • Authenticate with token

    Parameters

    • token: string

      access token

    Returns void

Generated using TypeDoc