From 02e36c829ecb70377e39ee95835095e3fd34c7a8 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 3 Nov 2022 11:08:58 +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. adapted from https://github.com/db-ui/core/pull/139 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c3073d4d8b..fb36ac2b9a 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "xml": "1.0.1" }, "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": {