From 71d2484daaf26523ee79447d458c78a3a1b122ee Mon Sep 17 00:00:00 2001 From: Alexander Kachkaev Date: Wed, 31 May 2023 18:46:23 +0100 Subject: [PATCH] Address review comment --- __tests__/main.test.ts | 3 +++ src/labeler.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 7aaf87d4f..c4b77bc99 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -29,6 +29,9 @@ const configureInput = ( jest .spyOn(core, 'getInput') .mockImplementation((name: string, ...opts) => mockInput[name]); + jest + .spyOn(core, 'getBooleanInput') + .mockImplementation((name: string, ...opts) => mockInput[name]); }; afterAll(() => jest.restoreAllMocks()); diff --git a/src/labeler.ts b/src/labeler.ts index 592959f0a..6331857cc 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -16,7 +16,7 @@ export async function run() { const token = core.getInput('repo-token'); const configPath = core.getInput('configuration-path', {required: true}); const syncLabels = !!core.getInput('sync-labels'); - const dot = !!core.getInput('dot'); + const dot = core.getBooleanInput('dot'); const prNumber = getPrNumber(); if (!prNumber) {