diff --git a/__test__/input-helper.test.ts b/__test__/input-helper.test.ts index e0f711b..09331eb 100644 --- a/__test__/input-helper.test.ts +++ b/__test__/input-helper.test.ts @@ -134,7 +134,8 @@ describe('input-helper tests', () => { }) it('sets ref to empty when explicit sha-256', async () => { - inputs.ref = '1111111111222222222233333333334444444444555555555566666666667777' + inputs.ref = + '1111111111222222222233333333334444444444555555555566666666667777' const settings: IGitSourceSettings = await inputHelper.getInputs() expect(settings.ref).toBeFalsy() expect(settings.commit).toBe( diff --git a/src/ref-helper.ts b/src/ref-helper.ts index 05362bd..71e8b22 100644 --- a/src/ref-helper.ts +++ b/src/ref-helper.ts @@ -258,7 +258,9 @@ export async function checkCommitInfo( } // Extract details from message - const match = commitInfo.match(/Merge ([0-9a-f]{40}|[0-9a-f]{64}) into ([0-9a-f]{40}|[0-9a-f]{64})/) + const match = commitInfo.match( + /Merge ([0-9a-f]{40}|[0-9a-f]{64}) into ([0-9a-f]{40}|[0-9a-f]{64})/ + ) if (!match) { core.debug('Unexpected message format') return