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

Fix secondary rate limits URL and improve related documentation #2229

Merged
merged 1 commit into from Dec 16, 2021

Conversation

rpelliard
Copy link
Contributor

It looks like GitHub is now designating "abuse rate limits" as "secondary rate limits": https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-rate-limits

The URL returned in the error response also changed, so this PR updates it so that these errors can properly be caught again.
This PR also includes a suggestion to update the main documentation page to mention this error type, to make it more discoverable.

@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #2229 (e23b7fd) into master (fef3638) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2229   +/-   ##
=======================================
  Coverage   97.81%   97.81%           
=======================================
  Files         112      112           
  Lines       10117    10117           
=======================================
  Hits         9896     9896           
  Misses        154      154           
  Partials       67       67           
Impacted Files Coverage Δ
github/github.go 97.62% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fef3638...e23b7fd. Read the comment docs.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @rpelliard !
LGTM.

Awaiting second LGTM before merging.
Any other repo contributor can approve for the second LGTM.

@gmlewis
Copy link
Collaborator

gmlewis commented Dec 16, 2021

Thank you, @pierce-m !
Merging.

@gmlewis gmlewis merged commit 6bc0adb into google:master Dec 16, 2021
@rpelliard rpelliard deleted the ronan/secondary-rate-limits branch December 17, 2021 10:08
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.

None yet

3 participants