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

GitHub API Error (rate limit) when too many commits are fetched #1068

Closed
ocervell opened this issue Sep 23, 2021 · 3 comments
Closed

GitHub API Error (rate limit) when too many commits are fetched #1068

ocervell opened this issue Sep 23, 2021 · 3 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@ocervell
Copy link

We tried setting up release-please on this repo (https://github.com/openfoodfacts/openfoodfacts-server), but since the repo is very active the tool tries to fetch hundreds of commit, exceeding the API rate limit...

Check https://github.com/openfoodfacts/openfoodfacts-server/runs/3676514657?check_suite_focus=true

@tmatsuo tmatsuo added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 23, 2021
@chingor13
Copy link
Contributor

I think the issue here is that the repo has never had any releases (tags) so our code will try to start from the beginning of time to collect commits to include in the CHANGELOG. For this repo it's like 30k commits which will blow through quota.

I'm adding a command line option in #1070 which will let you tell release-please what the last release was. In this case you could pick some SHA in history and assign it a previous version (0.0.0 maybe?)

@ocervell
Copy link
Author

@chingor13 that would be perfect !

@chingor13
Copy link
Contributor

This was released in https://github.com/googleapis/release-please/releases/tag/v12.3.0

An example of running the CLI command is in #1070

You'll likely want to run the CLI command as a one-off for the first release, then future releases either the GitHub action or GitHub app will find the first release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants