remove: unused code (#2014)
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user