Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Directly handle rate limiting usingclient.rate_limit.resets_in.#967

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ioquatix
Copy link
Contributor

We discussed some issues here, and at least when I tried, it, I ran into rate limiting issues.

#965 (comment)

This PR tries to respect GitHub's rate limiting.

@olleolleolle
Copy link
Collaborator

Ugh I was so curious about the test results, and it was styling issues that stopped the build. I should flip those around, check style after running tests.

ioquatix reacted with thumbs up emoji

rescue MovedPermanentlyError => e
fail_with_message(e, "The repository has moved, update your configuration")
rescue Octokit::TooManyRequests => e
resets_in = client.rate_limit.resets_in
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔍 I learned! resets_in (a time) is even provided by Octokit, thanks for finding this out!

ioquatix reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

You are most welcome!

Copy link
Collaborator

@olleolleolleolleolleolle left a comment

Choose a reason for hiding this comment

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

👍 This lets us use Octokit in a more precise way.

@olleolleolleolleolleolle merged commitd801469 intogithub-changelog-generator:masterJun 3, 2021
@ioquatixioquatix deleted the better-handling-of-rate-limits branchJune 3, 2021 10:25
@ioquatix
Copy link
ContributorAuthor

Thanks for handling this!

@aelam
Copy link

it seems that It does not work well as before.

@ioquatix
Copy link
ContributorAuthor

@aelam what is the problem?

@aelam
Copy link

@ioquatix Sorry for late, after I waited a long time, it worked

ioquatix reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@olleolleolleolleolleolleolleolleolle approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ioquatix@olleolleolle@aelam

[8]ページ先頭

©2009-2025 Movatter.jp