2024-03-08 18:20:45 -07:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should correctly parse boolean inputs 1`] = `
|
|
|
|
|
{
|
2024-04-17 10:24:26 -06:00
|
|
|
"apiUrl": "",
|
|
|
|
|
"baseSha": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"diffRelative": "false",
|
|
|
|
|
"dirNames": "false",
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": "false",
|
|
|
|
|
"dirNamesExcludeCurrentDir": "false",
|
2024-04-17 10:24:26 -06:00
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": "false",
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": "false",
|
|
|
|
|
"failOnSubmoduleDiffError": "false",
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": "false",
|
2024-04-18 12:45:07 -06:00
|
|
|
"fetchMissingHistoryMaxRetries": 10,
|
2024-04-17 10:24:26 -06:00
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"includeAllOldNewRenamedFiles": "false",
|
|
|
|
|
"json": true,
|
|
|
|
|
"negationPatternsFirst": "false",
|
2024-04-17 10:24:26 -06:00
|
|
|
"oldNewFilesSeparator": " ",
|
|
|
|
|
"oldNewSeparator": ",",
|
|
|
|
|
"outputDir": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"outputRenamedFilesAsDeletedAndAdded": "false",
|
2024-04-17 10:24:26 -06:00
|
|
|
"path": ".",
|
2024-03-08 18:20:45 -07:00
|
|
|
"quotepath": "false",
|
|
|
|
|
"recoverDeletedFiles": "false",
|
2024-04-17 10:24:26 -06:00
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "
|
|
|
|
|
",
|
|
|
|
|
"recoverFilesSeparator": "
|
|
|
|
|
",
|
2024-03-08 18:20:45 -07:00
|
|
|
"safeOutput": "false",
|
2024-04-17 10:24:26 -06:00
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"sinceLastRemoteCommit": "false",
|
|
|
|
|
"skipInitialFetch": "true",
|
2024-04-17 10:24:26 -06:00
|
|
|
"token": "",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": "false",
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": "false",
|
|
|
|
|
"writeOutputFiles": "false",
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should correctly parse numeric inputs 1`] = `
|
|
|
|
|
{
|
|
|
|
|
"apiUrl": "",
|
|
|
|
|
"baseSha": "",
|
|
|
|
|
"diffRelative": true,
|
|
|
|
|
"dirNames": false,
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
|
|
|
|
"dirNamesExcludeCurrentDir": false,
|
|
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
|
|
|
|
"dirNamesMaxDepth": 2,
|
|
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": false,
|
|
|
|
|
"failOnSubmoduleDiffError": false,
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": false,
|
|
|
|
|
"fetchDepth": 5,
|
|
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
|
|
|
|
"includeAllOldNewRenamedFiles": false,
|
|
|
|
|
"json": false,
|
|
|
|
|
"negationPatternsFirst": false,
|
|
|
|
|
"oldNewFilesSeparator": "",
|
|
|
|
|
"oldNewSeparator": "",
|
|
|
|
|
"outputDir": "",
|
|
|
|
|
"outputRenamedFilesAsDeletedAndAdded": false,
|
|
|
|
|
"path": "",
|
|
|
|
|
"quotepath": true,
|
|
|
|
|
"recoverDeletedFiles": false,
|
|
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "",
|
|
|
|
|
"recoverFilesSeparator": "",
|
|
|
|
|
"safeOutput": false,
|
|
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
|
|
|
|
"sinceLastRemoteCommit": false,
|
|
|
|
|
"skipInitialFetch": false,
|
|
|
|
|
"token": "",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": false,
|
|
|
|
|
"writeOutputFiles": false,
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should correctly parse string inputs 1`] = `
|
|
|
|
|
{
|
|
|
|
|
"apiUrl": "https://api.github.com",
|
|
|
|
|
"baseSha": "",
|
|
|
|
|
"diffRelative": true,
|
|
|
|
|
"dirNames": false,
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
|
|
|
|
"dirNamesExcludeCurrentDir": false,
|
|
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
|
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": false,
|
|
|
|
|
"failOnSubmoduleDiffError": false,
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": false,
|
|
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
|
|
|
|
"includeAllOldNewRenamedFiles": false,
|
|
|
|
|
"json": false,
|
|
|
|
|
"negationPatternsFirst": false,
|
|
|
|
|
"oldNewFilesSeparator": "",
|
|
|
|
|
"oldNewSeparator": "",
|
|
|
|
|
"outputDir": "",
|
|
|
|
|
"outputRenamedFilesAsDeletedAndAdded": false,
|
|
|
|
|
"path": "",
|
|
|
|
|
"quotepath": true,
|
|
|
|
|
"recoverDeletedFiles": false,
|
|
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "",
|
|
|
|
|
"recoverFilesSeparator": "",
|
|
|
|
|
"safeOutput": false,
|
|
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
|
|
|
|
"sinceLastRemoteCommit": false,
|
|
|
|
|
"skipInitialFetch": false,
|
|
|
|
|
"token": "token",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": false,
|
|
|
|
|
"writeOutputFiles": false,
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should handle invalid numeric inputs correctly 1`] = `
|
|
|
|
|
{
|
|
|
|
|
"apiUrl": "",
|
|
|
|
|
"baseSha": "",
|
|
|
|
|
"diffRelative": true,
|
|
|
|
|
"dirNames": false,
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
|
|
|
|
"dirNamesExcludeCurrentDir": false,
|
|
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
|
|
|
|
"dirNamesMaxDepth": 2,
|
|
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": false,
|
|
|
|
|
"failOnSubmoduleDiffError": false,
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": false,
|
|
|
|
|
"fetchDepth": NaN,
|
|
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
|
|
|
|
"includeAllOldNewRenamedFiles": false,
|
|
|
|
|
"json": false,
|
|
|
|
|
"negationPatternsFirst": false,
|
|
|
|
|
"oldNewFilesSeparator": "",
|
|
|
|
|
"oldNewSeparator": "",
|
|
|
|
|
"outputDir": "",
|
|
|
|
|
"outputRenamedFilesAsDeletedAndAdded": false,
|
|
|
|
|
"path": "",
|
|
|
|
|
"quotepath": true,
|
|
|
|
|
"recoverDeletedFiles": false,
|
|
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "",
|
|
|
|
|
"recoverFilesSeparator": "",
|
|
|
|
|
"safeOutput": false,
|
|
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
|
|
|
|
"sinceLastRemoteCommit": false,
|
|
|
|
|
"skipInitialFetch": false,
|
|
|
|
|
"token": "",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": false,
|
|
|
|
|
"writeOutputFiles": false,
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should handle negative numeric inputs correctly 1`] = `
|
|
|
|
|
{
|
|
|
|
|
"apiUrl": "",
|
|
|
|
|
"baseSha": "",
|
|
|
|
|
"diffRelative": true,
|
|
|
|
|
"dirNames": false,
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
|
|
|
|
"dirNamesExcludeCurrentDir": false,
|
|
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
|
|
|
|
"dirNamesMaxDepth": -2,
|
|
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": false,
|
|
|
|
|
"failOnSubmoduleDiffError": false,
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": false,
|
|
|
|
|
"fetchDepth": 2,
|
|
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
|
|
|
|
"includeAllOldNewRenamedFiles": false,
|
|
|
|
|
"json": false,
|
|
|
|
|
"negationPatternsFirst": false,
|
|
|
|
|
"oldNewFilesSeparator": "",
|
|
|
|
|
"oldNewSeparator": "",
|
|
|
|
|
"outputDir": "",
|
|
|
|
|
"outputRenamedFilesAsDeletedAndAdded": false,
|
|
|
|
|
"path": "",
|
|
|
|
|
"quotepath": true,
|
|
|
|
|
"recoverDeletedFiles": false,
|
|
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "",
|
|
|
|
|
"recoverFilesSeparator": "",
|
|
|
|
|
"safeOutput": false,
|
|
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
|
|
|
|
"sinceLastRemoteCommit": false,
|
|
|
|
|
"skipInitialFetch": false,
|
|
|
|
|
"token": "",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": false,
|
|
|
|
|
"writeOutputFiles": false,
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`getInputs should return default values when no inputs are provided 1`] = `
|
|
|
|
|
{
|
2024-04-17 10:24:26 -06:00
|
|
|
"apiUrl": "",
|
|
|
|
|
"baseSha": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"diffRelative": true,
|
|
|
|
|
"dirNames": false,
|
|
|
|
|
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
|
|
|
|
"dirNamesExcludeCurrentDir": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"dirNamesIncludeFiles": "",
|
|
|
|
|
"dirNamesIncludeFilesSeparator": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"escapeJson": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"excludeSubmodules": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"failOnInitialDiffError": false,
|
|
|
|
|
"failOnSubmoduleDiffError": false,
|
|
|
|
|
"fetchAdditionalSubmoduleHistory": false,
|
2024-04-18 12:45:07 -06:00
|
|
|
"fetchMissingHistoryMaxRetries": 10,
|
2024-04-17 10:24:26 -06:00
|
|
|
"files": "",
|
|
|
|
|
"filesFromSourceFile": "",
|
|
|
|
|
"filesFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnore": "",
|
|
|
|
|
"filesIgnoreFromSourceFile": "",
|
|
|
|
|
"filesIgnoreFromSourceFileSeparator": "",
|
|
|
|
|
"filesIgnoreSeparator": "",
|
|
|
|
|
"filesIgnoreYaml": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFile": "",
|
|
|
|
|
"filesIgnoreYamlFromSourceFileSeparator": "",
|
|
|
|
|
"filesSeparator": "",
|
|
|
|
|
"filesYaml": "",
|
|
|
|
|
"filesYamlFromSourceFile": "",
|
|
|
|
|
"filesYamlFromSourceFileSeparator": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"includeAllOldNewRenamedFiles": false,
|
|
|
|
|
"json": false,
|
|
|
|
|
"negationPatternsFirst": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"oldNewFilesSeparator": " ",
|
|
|
|
|
"oldNewSeparator": ",",
|
|
|
|
|
"outputDir": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"outputRenamedFilesAsDeletedAndAdded": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"path": ".",
|
2024-03-08 18:20:45 -07:00
|
|
|
"quotepath": true,
|
|
|
|
|
"recoverDeletedFiles": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"recoverDeletedFilesToDestination": "",
|
|
|
|
|
"recoverFiles": "",
|
|
|
|
|
"recoverFilesIgnore": "",
|
|
|
|
|
"recoverFilesIgnoreSeparator": "
|
|
|
|
|
",
|
|
|
|
|
"recoverFilesSeparator": "
|
|
|
|
|
",
|
2024-03-08 18:20:45 -07:00
|
|
|
"safeOutput": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"separator": "",
|
|
|
|
|
"sha": "",
|
|
|
|
|
"since": "",
|
2024-03-08 18:20:45 -07:00
|
|
|
"sinceLastRemoteCommit": false,
|
|
|
|
|
"skipInitialFetch": false,
|
2024-04-17 10:24:26 -06:00
|
|
|
"token": "",
|
|
|
|
|
"until": "",
|
2024-04-18 15:03:38 -06:00
|
|
|
"usePosixPathSeparator": false,
|
2024-03-08 18:20:45 -07:00
|
|
|
"useRestApi": false,
|
|
|
|
|
"writeOutputFiles": false,
|
|
|
|
|
}
|
|
|
|
|
`;
|