Skip to content

Commit 0105fa9

Browse files
authored
refactor: validate for default GH branch names (#486)
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 db-ui/core#139
1 parent 4154ac3 commit 0105fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"xml": "1.0.1"
7777
},
7878
"validate-branch-name": {
79-
"pattern": "((dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf)\\-[a-zA-Z0-9\\-]+)$)",
79+
"pattern": "((dependabot-)|^((test|feat|fix|chore|docs|refactor|style|ci|perf|[0-9]+)\\-[a-zA-Z0-9\\-]+)$)",
8080
"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."
8181
},
8282
"repository": {

0 commit comments

Comments
 (0)