Address review comment

This commit is contained in:
Alexander Kachkaev
2023-05-31 18:46:23 +01:00
parent 59d3310a72
commit 71d2484daa
2 changed files with 4 additions and 1 deletions

View File

@@ -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());

View File

@@ -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) {