From bb08dfdc309c9c026be4bb7568097ec38763fc73 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 3 Nov 2022 08:19:56 +0100 Subject: [PATCH] refactor: validate for default GH branch names If a branch is being created for an issue through the GitHub UI, its branch name is starting with the issues number followed by the text. We should ensure that we even also support this within our branch name validation script. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f52f9bf2d63..d9b435d62c7 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "prepare": "node -e \"try { require('husky').install() } catch (e) {}\"" }, "validate-branch-name": { - "pattern": "((dbux-3)|(dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf)\\-[a-zA-Z0-9\\-]+)$)", + "pattern": "((dbux-3)|(dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf|[0-9]+)\\-[a-zA-Z0-9\\-]+)$)", "errorMsg": "There is something wrong with your branch name. You should rename your branch to a valid name and try again. See the Pattern below." }, "keywords": [],