Compare commits

..

1 Commits

Author SHA1 Message Date
Yashwanth Anantharaju 119c8dda7d
Merge 4f1e7288c0 into 0c366fd6a8 2026-04-16 15:28:23 +00:00
2 changed files with 2 additions and 5 deletions

View File

@ -134,8 +134,7 @@ describe('input-helper tests', () => {
}) })
it('sets ref to empty when explicit sha-256', async () => { it('sets ref to empty when explicit sha-256', async () => {
inputs.ref = inputs.ref = '1111111111222222222233333333334444444444555555555566666666667777'
'1111111111222222222233333333334444444444555555555566666666667777'
const settings: IGitSourceSettings = await inputHelper.getInputs() const settings: IGitSourceSettings = await inputHelper.getInputs()
expect(settings.ref).toBeFalsy() expect(settings.ref).toBeFalsy()
expect(settings.commit).toBe( expect(settings.commit).toBe(

View File

@ -258,9 +258,7 @@ export async function checkCommitInfo(
} }
// Extract details from message // Extract details from message
const match = commitInfo.match( const match = commitInfo.match(/Merge ([0-9a-f]{40}|[0-9a-f]{64}) into ([0-9a-f]{40}|[0-9a-f]{64})/)
/Merge ([0-9a-f]{40}|[0-9a-f]{64}) into ([0-9a-f]{40}|[0-9a-f]{64})/
)
if (!match) { if (!match) {
core.debug('Unexpected message format') core.debug('Unexpected message format')
return return