From d1e3ff806a532673c608bf6af2ee699ce249bf71 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 22 Jun 2023 19:24:05 -0600 Subject: [PATCH] Fixed lint errors --- src/changedFiles.ts | 3 ++- src/main.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/changedFiles.ts b/src/changedFiles.ts index 4e4561eb..ee0d650f 100644 --- a/src/changedFiles.ts +++ b/src/changedFiles.ts @@ -1,5 +1,6 @@ import * as core from '@actions/core' -import {Octokit, RestEndpointMethodTypes} from '@octokit/rest' +import {Octokit} from '@octokit/rest' +import type {RestEndpointMethodTypes} from '@octokit/rest' import * as path from 'path' import {DiffResult} from './commitSha' diff --git a/src/main.ts b/src/main.ts index 2cc8ee23..23514099 100644 --- a/src/main.ts +++ b/src/main.ts @@ -278,7 +278,7 @@ export async function run(): Promise { core.debug(`Inputs: ${JSON.stringify(inputs, null, 2)}`) if (inputs.token && env.GITHUB_EVENT_PULL_REQUEST_NUMBER) { - const unsupportedInputs: Array = [ + const unsupportedInputs: (keyof Inputs)[] = [ 'sha', 'baseSha', 'since',