From e6185dc5e7ad1b01733a3b3d00809baa5117a816 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 22 May 2023 21:56:55 -0600 Subject: [PATCH] Fixed lint errors --- action.yml | 1 + src/commitSha.ts | 2 +- src/utils.ts | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 51f030ff..f4417dfc 100644 --- a/action.yml +++ b/action.yml @@ -76,6 +76,7 @@ inputs: diff_relative: description: "Exclude changes outside the current directory and show path names relative to it. **NOTE:** This requires you to specify the top level directory via the `path` input." required: false + default: "true" dir_names: default: "false" description: "Output unique changed directories instead of filenames. **NOTE:** This returns `.` for changed files located in the root of the project." diff --git a/src/commitSha.ts b/src/commitSha.ts index 695822db..673a17ea 100644 --- a/src/commitSha.ts +++ b/src/commitSha.ts @@ -331,7 +331,7 @@ export const getSHAForPullRequestEvent = async ( if ( !env.GITHUB_EVENT_PULL_REQUEST_BASE_REF || - env.GITHUB_EVENT_HEAD_REPO_FORK == 'true' + env.GITHUB_EVENT_HEAD_REPO_FORK === 'true' ) { diff = '..' } diff --git a/src/utils.ts b/src/utils.ts index ee89f0cc..ca51bf7f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,4 @@ +/*global AsyncIterableIterator*/ import * as core from '@actions/core' import * as exec from '@actions/exec' import {MatchKind} from '@actions/glob/lib/internal-match-kind' @@ -602,7 +603,7 @@ export const jsonOutput = ({ value, rawFormat }: { - value: any + value: string | string[] rawFormat: boolean }): string => { if (rawFormat) {