Skip to content

Customize Bottleneck.Groups Limits #640

@shouyang

Description

@shouyang

Motivation

I have a service that integrates localized resource files with repositories on GHE. I have a monorepo case where the octokit-write limit starts becoming onerous since I need to write about ~200 files per locale. At the current limits, this'll take a second per file, problematic since I'll be committing back 5 locales x ~200 files.

Ask

I'd like to expose some way to configure the bottlenecks created in createGroups.
For example:

type OctokitOptions = {
  ...
  throttle: {
    ...
    bottleneck: {
      globalMaxConcurrent: number

      search: {
        maxConcurrent: number
        minTime: number
      }

      write: {
        maxConcurrent: number
        minTime: number
      }

      notifications: {
        maxConcurrent: number
        minTime: number
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions