From 1bdca7bc1d97b9c3c8043e279e78f78491646f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Anthon=20Wellsj=C3=B6?= Date: Thu, 5 Dec 2024 11:57:40 +0100 Subject: [PATCH] fix: comments --- src/deploy/deploy.util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deploy/deploy.util.ts b/src/deploy/deploy.util.ts index 29430a2..3c92ab9 100644 --- a/src/deploy/deploy.util.ts +++ b/src/deploy/deploy.util.ts @@ -62,7 +62,7 @@ export async function createDeployInfo( if (backendCfg.hashedBranches) { // Obfuscates the branch name by hashing it. // If there are Jira issue names in the branch name, the first one found will be used as a prefix. - const jiraIssue = gitBranch.match(/(DEV-\d+)/)?.[0] + const jiraIssue = gitBranch.match(/([Dd][Ee][Vv]-\d+)/)?.[0] const branchHash = md5(gitBranch).slice(0, 10) branchName = [jiraIssue, branchHash].filter(Boolean).join('-') }