Skip to content

Commit 8fc001b

Browse files
chore(pie-monorepo-utils): DSW-123 allow longer jira ticket projects
1 parent ab879d4 commit 8fc001b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@justeattakeaway/pie-monorepo-utils": patch
3+
---
4+
5+
allow longer jira tickets with longer projects

packages/tools/pie-monorepo-utils/git-hooks/git-hooks-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const TICKET_PATTERNS = {
22
// Case insensitive branch name pattern: supports multiple ticket formats like dsw-123, abc-789
3-
BRANCH: /(^[a-z]{2,4}-(\d{1,7}))-\w.*/i,
3+
BRANCH: /(^[a-z]{2,8}-(\d{1,7}))-\w.*/i,
44
// Case insensitive commit message pattern: type(scope): TICKET-123 title (supports multiple ticket formats)
5-
COMMIT: /^(\w+)\((\w.*)\): ([A-Z]{2,4}-(?!0+)\d{1,7}) (\w.*)$/i,
5+
COMMIT: /^(\w+)\((\w.*)\): ([A-Z]{2,8}-(?!0+)\d{1,7}) (\w.*)$/i,
66
// PR title pattern: type(scope): TICKET-123 title (supports multiple ticket formats)
7-
PR_TITLE: /^(\w+)\((\w.*)\): ([A-Z]{2,4}-(?!0+)\d{1,7}) (\w.*)$|^Version Packages.*/,
7+
PR_TITLE: /^(\w+)\((\w.*)\): ([A-Z]{2,8}-(?!0+)\d{1,7}) (\w.*)$|^Version Packages.*/,
88
};
99

1010
/**

0 commit comments

Comments
 (0)