You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fairly common pattern in PRs is to rebase commits before merging, which might mean that the remote history gets erased/overwritten after a force push.
If the action is configured to calculate changes with since_last_remote_commit: "true", the action fails after a rebase force push indicating the commit no longer exists.
To Reproduce
Commit a few commits to a PR (git commit x 3 + git push)
Rebase and reword an old commit (git rebase -i HEAD~3)
Force push (git push -f)
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
I would expect / hope for the last valid remote commit to get recalculated based on the commits overwritten in the rebase.
Error: Unable to locate the previous sha: 4242714b9997c0c6a32e6e0f7d9a25913d741360
Error: You seem to be missing 'fetch-depth: 0' or 'fetch-depth: 2'. See https://github.com/tj-actions/changed-files#usage
Error: Process completed with exit code 1.
Anything else?
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
A fairly common pattern in PRs is to rebase commits before merging, which might mean that the remote history gets erased/overwritten after a force push.
If the action is configured to calculate changes with
since_last_remote_commit: "true"
, the action fails after a rebase force push indicating the commit no longer exists.To Reproduce
git commit
x 3 +git push
)git rebase -i HEAD~3
)git push -f
)What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
I would expect / hope for the last valid remote commit to get recalculated based on the commits overwritten in the rebase.
after rebase:
Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: