Skip to content

Very slow on repos with large numbers of PRs #48

@aroon-color

Description

@aroon-color

We use a (mostly) mono-repo setup with many developers creating branches and submitting PRs to main. At the moment we have about 120 PRs and 2400 branches (a small number are "perennial" in the git-sync parlance but most are not). Historically though we've had on the order of 100,000 PRs opened - and this seems to be the issue. It looks like the action is enumerating all PRs ever made into a repository. It takes the action ~15 minutes to update the PR description, which is longer than our other CI tasks take.

I think adding a look back limit with some sane defaults (last 100?) on the PR enumeration would help a lot (adding sort: desc; page: 1 to getPullRequests instead of paginating).

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