mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-04-20 14:00:32 +03:00
fix: expand merge commit SHA regex and add SHA-256 test cases
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0c366fd6a8
commit
4d90d5f46c
5 changed files with 21 additions and 4 deletions
|
|
@ -258,7 +258,7 @@ export async function checkCommitInfo(
|
|||
}
|
||||
|
||||
// Extract details from message
|
||||
const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/)
|
||||
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