mirror of
https://github.com/actions/labeler.git
synced 2025-12-13 04:57:21 +00:00
Address review comment
This commit is contained in:
@@ -29,6 +29,9 @@ const configureInput = (
|
|||||||
jest
|
jest
|
||||||
.spyOn(core, 'getInput')
|
.spyOn(core, 'getInput')
|
||||||
.mockImplementation((name: string, ...opts) => mockInput[name]);
|
.mockImplementation((name: string, ...opts) => mockInput[name]);
|
||||||
|
jest
|
||||||
|
.spyOn(core, 'getBooleanInput')
|
||||||
|
.mockImplementation((name: string, ...opts) => mockInput[name]);
|
||||||
};
|
};
|
||||||
|
|
||||||
afterAll(() => jest.restoreAllMocks());
|
afterAll(() => jest.restoreAllMocks());
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export async function run() {
|
|||||||
const token = core.getInput('repo-token');
|
const token = core.getInput('repo-token');
|
||||||
const configPath = core.getInput('configuration-path', {required: true});
|
const configPath = core.getInput('configuration-path', {required: true});
|
||||||
const syncLabels = !!core.getInput('sync-labels');
|
const syncLabels = !!core.getInput('sync-labels');
|
||||||
const dot = !!core.getInput('dot');
|
const dot = core.getBooleanInput('dot');
|
||||||
|
|
||||||
const prNumber = getPrNumber();
|
const prNumber = getPrNumber();
|
||||||
if (!prNumber) {
|
if (!prNumber) {
|
||||||
|
|||||||
Reference in New Issue
Block a user