Skip to content

Fix GraphQL RESOURCE_LIMITS_EXCEEDED errors due to GitHub API limits #1086 - #1089

Merged
bluekeyes merged 2 commits into
palantir:developfrom
DepickereSven:svendep/graphql-resource-limits
Oct 28, 2025
Merged

bluekeyes merged 2 commits into
palantir:developfrom
DepickereSven:svendep/graphql-resource-limits

Conversation

@DepickereSven

Copy link
Copy Markdown
Contributor

Before this PR

Over the past few days, we’ve encountered an issue with the policy-bot where reviewers are not being automatically assigned to pull requests (PRs) when they are created or opened for review.
Because of the following error: failed to select reviewers: failed to list repository collaborators: failed to load repository collaborators: Resource limits for this query exceeded

After this PR

That people are automatically assigned by policy-bot when PRs are created

More context

See for more information #1086

Possible downsides?

Possibility that GraphQL request limit is reached because the amount of calls can possibly double based on the amount of collaborators in an environment. Brought up by @bluekeyes in context of #1030

@changelog-app

changelog-app Bot commented Oct 28, 2025 •

Copy link
Copy Markdown

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Fix potential GraphQL RESOURCE_LIMITS_EXCEEDED errors when assigning reviewers

Check the box to generate changelog(s)

  • Generate changelog entry

@changelog-app

changelog-app Bot commented Oct 28, 2025

Copy link
Copy Markdown

✅ Successfully generated changelog entry!

Need to regenerate?

Simply interact with the changelog bot comment again to regenerate these entries.


📋Changelog Preview

🐛 Fixes

  • Fix potential GraphQL RESOURCE_LIMITS_EXCEEDED errors when assigning reviewers (#1089)

@bluekeyes
bluekeyes merged commit 75e0483 into palantir:develop Oct 28, 2025
3 checks passed
@DepickereSven
DepickereSven deleted the svendep/graphql-resource-limits branch October 28, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants