diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 7aaf87d4..c4b77bc9 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 592959f0..6331857c 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) {