remove: unused code (#2014)

This commit is contained in:
Tonye Jack
2024-03-26 16:49:39 -06:00
committed by GitHub
parent 2ca8dc42f6
commit 90941b398f
5 changed files with 38 additions and 128 deletions

View File

@@ -23,7 +23,6 @@ import {
hasLocalGitDirectory,
isRepoShallow,
recoverDeletedFiles,
setForkRemote,
setOutput,
submoduleExists,
updateGitGlobalConfig,
@@ -73,8 +72,7 @@ const getChangedFilesFromLocalGitHistory = async ({
}
const isTag = env.GITHUB_REF?.startsWith('refs/tags/')
const isFork = github.context.payload.pull_request?.head.repo.fork || false
let remoteName = 'origin'
const remoteName = 'origin'
const outputRenamedFilesAsDeletedAndAdded =
inputs.outputRenamedFilesAsDeletedAndAdded
let submodulePaths: string[] = []
@@ -87,10 +85,6 @@ const getChangedFilesFromLocalGitHistory = async ({
gitFetchExtraArgs = ['--prune', '--no-recurse-submodules']
}
if (isFork) {
remoteName = await setForkRemote({cwd: workingDirectory})
}
let diffResult: DiffResult
if (!github.context.payload.pull_request?.base?.ref) {
@@ -117,8 +111,7 @@ const getChangedFilesFromLocalGitHistory = async ({
isShallow,
hasSubmodule,
gitFetchExtraArgs,
remoteName,
isFork
remoteName
})
}