From 187ac427a2b5d4a447c6356f4ac661d5ed7b420a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 3 Nov 2022 08:19:54 +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 bab151ffe..2ecce4af9 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "xo": "^0.52.4" }, "validate-branch-name": { - "pattern": "((dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf)\\-[a-zA-Z0-9\\-]+)$)", + "pattern": "((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." }, "repository": {