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
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
Currently, a full clone is required for this action to work properly. As we need commits since the last common ancestor only, the current behavior isn't optimal on huge repositories.
So, I propose doing something like this:
Check out refs/pull/${{ github.event.issue.number }}/head instead of the default branch with the depth of 1. At the point of checkout, this is the only commit we know for sure we'll need and we can refer to it. Patch:
Fetch the head branch and deepen the history by the number of commits in the PR (see --deepen and --shallow-exclude fetch options). This should fetch all the remaining commits in the head branch, plus the the last common ancestor.
Fetch the base branch.
At this point, we should have all the commits we need to rebase the head branch.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, a full clone is required for this action to work properly. As we need commits since the last common ancestor only, the current behavior isn't optimal on huge repositories.
So, I propose doing something like this:
Check out
refs/pull/${{ github.event.issue.number }}/head
instead of the default branch with the depth of 1. At the point of checkout, this is the only commit we know for sure we'll need and we can refer to it. Patch:Click to expand
Fetch the head branch and deepen the history by the number of commits in the PR (see
--deepen
and--shallow-exclude
fetch options). This should fetch all the remaining commits in the head branch, plus the the last common ancestor.Fetch the base branch.
At this point, we should have all the commits we need to rebase the head branch.
The text was updated successfully, but these errors were encountered: