Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-cmd/pr-pull: avoid expensive search API calls #13801

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Sep 3, 2022

The search API has a rate limit of 30 per minute. This is far too small for something invoked on every merge in both Homebrew/core and Homebrew/cask.

Instead let's not use the search API at all and use the Issues REST API.

As a bonus: add a check to avoid an unnecessary GitHub.get_pull_request_changed_files REST API call when there is no long PRs to check.

@Bo98 Bo98 added the critical Critical change which should be shipped as soon as possible. label Sep 3, 2022
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@Chinaza12

This comment was marked as spam.

@Bo98 Bo98 merged commit 9972cba into Homebrew:master Sep 4, 2022
@Bo98 Bo98 deleted the pr-pull-github-api branch September 4, 2022 00:09
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks @Bo98!

@github-actions github-actions bot added the outdated PR was locked due to age label Oct 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants