Skip to content

Commit 71d2484

Browse files
committed
Address review comment
1 parent 59d3310 commit 71d2484

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

__tests__/main.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const configureInput = (
2929
jest
3030
.spyOn(core, 'getInput')
3131
.mockImplementation((name: string, ...opts) => mockInput[name]);
32+
jest
33+
.spyOn(core, 'getBooleanInput')
34+
.mockImplementation((name: string, ...opts) => mockInput[name]);
3235
};
3336

3437
afterAll(() => jest.restoreAllMocks());

src/labeler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function run() {
1616
const token = core.getInput('repo-token');
1717
const configPath = core.getInput('configuration-path', {required: true});
1818
const syncLabels = !!core.getInput('sync-labels');
19-
const dot = !!core.getInput('dot');
19+
const dot = core.getBooleanInput('dot');
2020

2121
const prNumber = getPrNumber();
2222
if (!prNumber) {

0 commit comments

Comments
 (0)