mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 03:58:05 +00:00
Address review comment
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user