mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-04-20 05:50:26 +03:00
style: fix Prettier formatting in test and source files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4f1e7288c0
commit
71f7057fab
2 changed files with 5 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue