Documentation for Simbo's Packages
    Preparing search index...
    • Creates an authenticated Octokit client with getOctokit from @actions/github that waits and retries when GitHub reports a rate limit, using the official plugin @octokit/plugin-throttling.

      Both rate limit handlers call shouldRetryOnRateLimit and replace any handlers in options.throttle; its other settings are kept.

      Parameters

      • token: string

        The token to authenticate with, such as GITHUB_TOKEN.

      • options: OctokitOptions = {}

        Further options for getOctokit.

      Returns Octokit & Api & { paginate: PaginateInterface }

      The Octokit client.