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

Pull forks using search api / add error for rate-limit hit #165

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

ChrisMcKee
Copy link
Contributor

Hi,
Handy tool; just offering up some changes I made to help me dig my way out of a decade or so of forks 🙈
I blindly hit the rate limit a few times as the upstream checks use a fair few requests; so I added the check upfront.

  • Changed getAllRepos to fetch users forks using search api, sorted by created date
  • Add some more detail to readme.
  • Update packages
  • Add rate limit check with "time remaining till reset" to rate-limit error

Ta

Chris

* Change getAllRepos to fetch users forks using search api, sort by created date
* Add some more detail to readme.
* Update packages
* Add rate limit check with "time remaining till reset" to rate-limit error.
# Conflicts:
#	go.mod
#	go.sum
Copy link
Owner

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

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

thanks for the PR, just a small comment

fork-cleaner.go Outdated Show resolved Hide resolved
@caarlos0 caarlos0 merged commit d674748 into caarlos0:main Nov 14, 2023
@caarlos0
Copy link
Owner

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants