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

feat: add limit-commits option #67

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ruyadorno
Copy link
Member

Last time I had to fight GitHub API secondary rate limits for a very long-lived LTS release I ended up writing this (based on knowledge shared from @BethGriggs) to help me unblock retrieving a list of commits from branch-diff.

Although it might be functional, the current API here is very clunky and requires the user to find out how many commits are already ignored in order to provide that value to skip-commits and from a combination of skip-commits and limit-commits hopefully cut out a limited enough series of commit that will not trigger GitHub API limits.

Opening this as a draft so that we can discuss better alternatives.

Adds a new option that can be used to set a maximum number of commits
that branch-diff should work with prior to starting requesting GitHub
APIs.

This is an essential feature to help releasers avoid exceeding
GitHub API secondary rate limit.
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.

1 participant