-
Notifications
You must be signed in to change notification settings - Fork 169
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
Support mirror of account with > 100 repos #21
Comments
我的个人仓库没有 100 个,但也支持同步了 30 个左右。 |
目前只支持最多30个啊 https://stackoverflow.com/questions/27331849/github-api-v3-doesnt-show-all-user-repositories 建议修改下支持 100 个仓库。 |
github有流控,很容易出现查着查着就超时的情况。 |
{"message":"API rate limit exceeded for xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"} |
增加 GItHub token 的支持?这样我记得可以一小时几千次。 |
@ShixiangWang 嗯,可以复用那个token配置项,有空我试试 |
因为需要获取src端的列表,因此需要src端的token,目前暂时没加这个配置项。 测了下其实基本也还好,github的接口是大概1小时60次,基本满足诉求了,即使分页每次100个repo,超过5000个repo才有可能超时。 当然,精益求精,后面准备加一个src_token作为可选配置。其实代码已经写了,但是代码比较乱,会影响pagination的阅读,所以后面再单独合入[1] [1] 6cb3a46 |
That means we should support pagination query in [1].
[1] https://github.com/Yikun/hub-mirror-action/blob/v0.05/entrypoint.sh#L57
The text was updated successfully, but these errors were encountered: