From d6babd6899969df1a11d14c368283ea4436bca78 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 May 2024 23:05:34 -0600 Subject: [PATCH] fix: warning with fetch_missing_history_max_retries using REST API (#2114) --- dist/index.js | Bin 2348864 -> 2348864 bytes dist/index.js.map | Bin 2761118 -> 2761118 bytes .../__snapshots__/inputs.test.ts.snap | 4 ++-- src/__tests__/utils.test.ts | 2 +- src/constant.ts | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index c2194f805f18d72698d3e75ee36e1ea6f2293a8a..f14b40486ebae99ea1a927826a065f08cec2ec0e 100644 GIT binary patch delta 162 zcmWN=ITC^}06@`+0cBNL1X)zDreNqf9R(#Nw{Yxia}WB|<_7#X^VDY%ieLS=hQ9OG ztro>3%`A=Jfsz(&9(kfemmYlv40+~-S4NDPFy)OIbKY67WW|~fKKWw9_9xAI)H`g; BKso>b delta 162 zcmWN=ITC^}06@`+0cBNL1X)zDrho%*ItofkZsFM3<{tE^%?uuZ$QoVagjb=Df3D$%-`}eDcMH?N6HbsCR5N BKsf*a diff --git a/dist/index.js.map b/dist/index.js.map index 94fdbe19c0890c3b97a9a5ad3bfa1dd7bb7f6cf9..83ed8366a2402c9f6e8fdb1644da56f21cf4f4d4 100644 GIT binary patch delta 171 zcmWN=$qj-~6hP5@6dXW7R6t}_R9IRY1+aLD`5m}oO#vhpKx5vMoM9f-z+RLXvXG^i zlhtVT{!B?&;Fwfj*Bs@yviBBVHKu%7iI1<}6sU;*EFKeDKNFuhmWW F{R2AKIf(!O delta 171 zcmWN=$qj-~6hP5@6dXW7R6t}_RM^=Y1+aLD`5m}oO#vhpKx5vMoM9f-z+RLXvXG^i zlhtVT{!B?&;Fwfj*Bs@yviBBVHKu%7iI1<}6sU;*EFKeDKNFuhmWW F{R28hIfwuN diff --git a/src/__tests__/__snapshots__/inputs.test.ts.snap b/src/__tests__/__snapshots__/inputs.test.ts.snap index 6add0c63..1725e73d 100644 --- a/src/__tests__/__snapshots__/inputs.test.ts.snap +++ b/src/__tests__/__snapshots__/inputs.test.ts.snap @@ -15,7 +15,7 @@ exports[`getInputs should correctly parse boolean inputs 1`] = ` "failOnInitialDiffError": "false", "failOnSubmoduleDiffError": "false", "fetchAdditionalSubmoduleHistory": "false", - "fetchMissingHistoryMaxRetries": 10, + "fetchMissingHistoryMaxRetries": 20, "files": "", "filesFromSourceFile": "", "filesFromSourceFileSeparator": "", @@ -324,7 +324,7 @@ exports[`getInputs should return default values when no inputs are provided 1`] "failOnInitialDiffError": false, "failOnSubmoduleDiffError": false, "fetchAdditionalSubmoduleHistory": false, - "fetchMissingHistoryMaxRetries": 10, + "fetchMissingHistoryMaxRetries": 20, "files": "", "filesFromSourceFile": "", "filesFromSourceFileSeparator": "", diff --git a/src/__tests__/utils.test.ts b/src/__tests__/utils.test.ts index 2cb476aa..15eb0d15 100644 --- a/src/__tests__/utils.test.ts +++ b/src/__tests__/utils.test.ts @@ -639,7 +639,7 @@ describe('utils test', () => { negationPatternsFirst: false, useRestApi: false, excludeSubmodules: false, - fetchMissingHistoryMaxRetries: 10, + fetchMissingHistoryMaxRetries: 20, usePosixPathSeparator: false, tagsPattern: '*', tagsIgnorePattern: '' diff --git a/src/constant.ts b/src/constant.ts index 5f81377d..930d5f95 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -22,7 +22,7 @@ export const DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS: Partial = { fetchAdditionalSubmoduleHistory: false, dirNamesDeletedFilesIncludeOnlyDeletedDirs: false, excludeSubmodules: false, - fetchMissingHistoryMaxRetries: 10, + fetchMissingHistoryMaxRetries: 20, usePosixPathSeparator: false, tagsPattern: '*', tagsIgnorePattern: ''