Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Mitrofanov <[email protected]>
  • Loading branch information
name212 committed Sep 20, 2024
1 parent 5d971a6 commit 7eb3534
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/scripts/js/git-ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const semVerReleaseTagName = /v(\d+\.\d+)\.\d+/
const semVerTestTagNameFullMatch = /^test-v?(\d+\.\d+)\.\d+/
// release-X.Y
const releaseBranchNameFullMatch = /^release-(\d+\.\d+)$/
// release-X.Y-test-D
const releaseBranchNameFullMatch2 = /^release-(\d+\.\d+)-test-\d$/


/**
Expand Down Expand Up @@ -126,6 +128,11 @@ const fullMatchReleaseBranch = (input) => {
if (!input) {
return null
}
return input.match(releaseBranchNameFullMatch)
let res = input.match(releaseBranchNameFullMatch)
if (res != null) {
return res
}

return input.match(releaseBranchNameFullMatch2)
}
module.exports.fullMatchReleaseBranch = fullMatchReleaseBranch

0 comments on commit 7eb3534

Please sign in to comment.