diff --git a/dist/index.js b/dist/index.js index 54c42dea..5391ed81 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index f5abcdaa..4db3a16d 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/constant.ts b/src/constant.ts index 7ce6c05b..51ab7fe1 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -1,6 +1,6 @@ import {Inputs} from './inputs' -export const UNSUPPORTED_REST_API_INPUTS: Partial = { +export const DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS: Partial = { sha: '', baseSha: '', since: '', diff --git a/src/utils.ts b/src/utils.ts index c97db3bf..79dd8825 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -10,7 +10,7 @@ import {createInterface} from 'readline' import {parseDocument} from 'yaml' import {ChangedFiles, ChangeTypeEnum} from './changedFiles' import {DiffResult} from './commitSha' -import {UNSUPPORTED_REST_API_INPUTS} from './constant' +import {DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS} from './constant' import {Inputs} from './inputs' const MINIMUM_GIT_VERSION = '2.18.0' @@ -1520,12 +1520,14 @@ export const warnUnsupportedRESTAPIInputs = async ({ }: { inputs: Inputs }): Promise => { - for (const key of Object.keys(UNSUPPORTED_REST_API_INPUTS)) { + for (const key of Object.keys(DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS)) { const defaultValue = Object.hasOwnProperty.call( - UNSUPPORTED_REST_API_INPUTS, + DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS, key ) - ? UNSUPPORTED_REST_API_INPUTS[key as keyof Inputs]?.toString() + ? DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[ + key as keyof Inputs + ]?.toString() : '' if (defaultValue !== inputs[key as keyof Inputs]?.toString()) {