Further diff reduction

This commit is contained in:
Alexander Kachkaev
2023-05-31 01:54:22 +01:00
parent 673c7e22a7
commit e3b3815c8d
3 changed files with 4 additions and 7 deletions

View File

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

4
dist/index.js vendored
View File

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

View File

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