Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Aug 21, 2023
1 parent b9a4d6b commit 8123810
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 5 additions & 6 deletions src/changedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ function* getFilePaths({
const isWin = isWindows()
const matchOptions = {dot: true, windows: isWin, noext: true}

for (const filePath of mm(
for (const matchedFilePath of mm(
filePaths,
dirNamesIncludeFilePatterns,
matchOptions
)) {
yield filePath
yield matchedFilePath
}
}
yield getDirnameMaxDepth({
Expand Down Expand Up @@ -323,10 +323,9 @@ export const getChangedFilesFromGithubAPI = async ({
per_page: 100
})

const paginatedResponse =
await octokit.paginate<
RestEndpointMethodTypes['pulls']['listFiles']['response']['data'][0]
>(options)
const paginatedResponse = await octokit.paginate<
RestEndpointMethodTypes['pulls']['listFiles']['response']['data'][0]
>(options)

core.info(`Found ${paginatedResponse.length} changed files from GitHub API`)
const statusMap: Record<string, ChangeTypeEnum> = {
Expand Down
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import {
import {setChangedFilesOutput} from './changedFilesOutput'
import {
DiffResult,
getSHAForPullRequestEvent,
getSHAForNonPullRequestEvent
getSHAForNonPullRequestEvent,
getSHAForPullRequestEvent
} from './commitSha'
import {Env, getEnv} from './env'
import {getInputs, Inputs} from './inputs'
import {
getDirNamesIncludeFilesPattern,
getFilePatterns,
getFilteredChangedFiles,
getRecoverFilePatterns,
Expand Down

0 comments on commit 8123810

Please sign in to comment.