happy-conventional-commit
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -40,4 +40,4 @@ "use strict"; | ||
const parts = commit.trim().split(':'); | ||
if (parts.length === 1 && !commit.startsWith('Merge ')) { | ||
if (parts[0]) { | ||
if (parts.length === 1) { | ||
if (parts[0] && !commit.startsWith('Merge ')) { | ||
change.patch = true; | ||
@@ -47,3 +47,3 @@ } | ||
else { | ||
const type = parts[0]; | ||
const type = parts[0].split('[')[0]; | ||
switch (type) { | ||
@@ -59,2 +59,7 @@ case 'BREAKING CHANGE': | ||
break; | ||
case 'chore': | ||
break; | ||
default: | ||
change.patch = true; | ||
break; | ||
} | ||
@@ -61,0 +66,0 @@ } |
{ | ||
"name": "happy-conventional-commit", | ||
"description": "Tools for getting a happy conventional commit setup.", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"author": "David Ortner", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -40,8 +40,8 @@ import ChildProcess from 'child_process'; | ||
const parts = commit.trim().split(':'); | ||
if (parts.length === 1 && !commit.startsWith('Merge ')) { | ||
if (parts[0]) { | ||
if (parts.length === 1) { | ||
if (parts[0] && !commit.startsWith('Merge ')) { | ||
change.patch = true; | ||
} | ||
} else { | ||
const type = parts[0]; | ||
const type = parts[0].split('[')[0]; | ||
switch (type) { | ||
@@ -57,2 +57,7 @@ case 'BREAKING CHANGE': | ||
break; | ||
case 'chore': | ||
break; | ||
default: | ||
change.patch = true; | ||
break; | ||
} | ||
@@ -59,0 +64,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
151968
1876