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:
@@ -55,6 +55,7 @@ export type Inputs = {
|
||||
negationPatternsFirst: boolean
|
||||
useRestApi: boolean
|
||||
excludeSubmodules: boolean
|
||||
fetchMissingHistoryMaxRetries?: number
|
||||
}
|
||||
|
||||
export const getInputs = (): Inputs => {
|
||||
@@ -245,6 +246,11 @@ export const getInputs = (): Inputs => {
|
||||
required: false
|
||||
})
|
||||
|
||||
const fetchMissingHistoryMaxRetries = core.getInput(
|
||||
'fetch_missing_history_max_retries',
|
||||
{required: false}
|
||||
)
|
||||
|
||||
const inputs: Inputs = {
|
||||
files,
|
||||
filesSeparator,
|
||||
@@ -311,5 +317,12 @@ export const getInputs = (): Inputs => {
|
||||
inputs.dirNamesMaxDepth = parseInt(dirNamesMaxDepth, 10)
|
||||
}
|
||||
|
||||
if (fetchMissingHistoryMaxRetries) {
|
||||
inputs.fetchMissingHistoryMaxRetries = parseInt(
|
||||
fetchMissingHistoryMaxRetries,
|
||||
10
|
||||
)
|
||||
}
|
||||
|
||||
return inputs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user