diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 2e5bb190..7aaf87d4 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -29,9 +29,6 @@ const configureInput = ( jest .spyOn(core, 'getInput') .mockImplementation((name: string, ...opts) => mockInput[name]); - jest - .spyOn(core, 'getBooleanInput') - .mockImplementation((name: string, ...opts) => mockInput[name] === true); }; afterAll(() => jest.restoreAllMocks()); diff --git a/dist/index.js b/dist/index.js index 185c4f2d..6f64c9e1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -49,8 +49,8 @@ function run() { try { const token = core.getInput('repo-token'); const configPath = core.getInput('configuration-path', { required: true }); - const syncLabels = !!core.getBooleanInput('sync-labels', { required: false }); - const dot = !!core.getBooleanInput('dot', { required: false }); + const syncLabels = !!core.getInput('sync-labels', { required: false }); + const dot = !!core.getInput('dot', { required: false }); const prNumber = getPrNumber(); if (!prNumber) { core.info('Could not get pull request number from context, exiting'); diff --git a/src/labeler.ts b/src/labeler.ts index 3bbe23c2..79f11a3d 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -15,8 +15,8 @@ export async function run() { try { const token = core.getInput('repo-token'); const configPath = core.getInput('configuration-path', {required: true}); - const syncLabels = !!core.getBooleanInput('sync-labels', {required: false}); - const dot = !!core.getBooleanInput('dot', {required: false}); + const syncLabels = !!core.getInput('sync-labels', {required: false}); + const dot = !!core.getInput('dot', {required: false}); const prNumber = getPrNumber(); if (!prNumber) {