feat: add support for specifying the max number for retries to fetch missing history (#2052)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -528,7 +528,11 @@ export const getSHAForPullRequestEvent = async ({
|
||||
'Merge base is not in the local history, fetching remote target branch...'
|
||||
)
|
||||
|
||||
for (let i = 1; i <= 10; i++) {
|
||||
for (
|
||||
let i = 1;
|
||||
i <= (inputs.fetchMissingHistoryMaxRetries || 10);
|
||||
i++
|
||||
) {
|
||||
await gitFetch({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
|
||||
Reference in New Issue
Block a user