Skip to content

Commit

Permalink
Merge branch 'main' into changeset-release/main
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-marjoram authored Jul 10, 2024
2 parents 27b0342 + 59d9ef7 commit 503e136
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"commitizen": "4.3.0",
"cross-env": "7.0.3",
"cssnano": "5.1.15",
"cz-customizable": "7.0.0",
"cz-customizable": "7.1.0",
"danger": "11.3.0",
"dree": "3.4.5",
"eslint": "8.37.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/tools/pie-git-hooks-scripts/git-hooks-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function verifyCommitMessage (commitMessage, ticketId) {
// Process commit message and check if it already has a ticket id
const match = commitMessage.match(/^(\w*)\((\w.*)\): (\w+?-\d{1,7}) (\w.*)/);

const isMergeCommit = commitMessage.trim().match(/^Merge branch '[\w-]+' into [\w-]+\n?/);
if (isMergeCommit !== null) return commitMessage.trim();

// If the commit message doesn't have a ticket id, extract the existing message parts and add the ticket id
if (!match) {
const commitMessageParts = commitMessage.match(/^(\w*)\((\w.*)\): (\w.*)/);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17593,9 +17593,9 @@ __metadata:
languageName: node
linkType: hard

"cz-customizable@npm:7.0.0":
version: 7.0.0
resolution: "cz-customizable@npm:7.0.0"
"cz-customizable@npm:7.1.0":
version: 7.1.0
resolution: "cz-customizable@npm:7.1.0"
dependencies:
editor: 1.0.0
find-config: ^1.0.0
Expand All @@ -17606,7 +17606,7 @@ __metadata:
bin:
cz-cust: standalone.js
cz-customizable: standalone.js
checksum: 657ae421f9b21c5c4168cad518089780f9a3ce7501cbeea8b8d652ff7ed6ba0fdf9532ca9ca0d025c11520ba4be878bc828d2bd84d1d4484bbb66031d055f95a
checksum: b8ce92e6aa84fb0c2d921d9cc676b032e12176fd850e384a71a9a6cf21d079d731d8b5364ad0aeb894df4538b0fee091cd21710900c005679646706cda3049b6
languageName: node
linkType: hard

Expand Down Expand Up @@ -29571,7 +29571,7 @@ __metadata:
commitizen: 4.3.0
cross-env: 7.0.3
cssnano: 5.1.15
cz-customizable: 7.0.0
cz-customizable: 7.1.0
danger: 11.3.0
dree: 3.4.5
eslint: 8.37.0
Expand Down

0 comments on commit 503e136

Please sign in to comment.