-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
increase the fetch_depth to a number higher than 5000
#812
Comments
Btw, the following is what I'm using for pull-requests (your action for everything else):
|
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience. |
increase the fetch_depth to a number higher than 5000
High-level description: This bug occurs when the fork point and the last commit of the base branch differ, resulting in errors finding the merge-base as the checkout action merges the tip of the target branch to the PR branch. To prevent this error going forward a pre-check to determine the validity of merge-base would be used falling back to the last commit of the target branch where necessary. |
Thanks for confirming the bug. To be clear, are you saying that I should setup that pre-check, or that will be added to the action [soon]? :D |
@rainabba This was already implemented in the latest release, I'll suggest you upgrade (if you use semver) or re-run the action (if you use the major version). |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Even with
max_fetch_depth: 5000
,I'm getting:
Error: Unable to locate the current sha: ******************************* Error: Please verify that current sha is valid, and increase the fetch_depth to a number higher than 5000. Error: Process completed with exit code 1.
To Reproduce
This is on a private, enterprise repo so I can't reproduce publicly. Our workflow in general is to branch from main to a feature/branch, then a PR setup against our QA branch. I'm seeing this on many of those pull-request runs.
What OS are you seeing the problem on?
ubuntu-18.04
Expected behavior?
A non-error outcome, or more useful value suggested.
Relevant log output
Output
The text was updated successfully, but these errors were encountered: