hg-auto-semver
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -36,7 +36,8 @@ #!/usr/bin/env node | ||
if (branch) { | ||
const releaseRegex = new RegExp('^release\\-', 'gim'); | ||
const fixRegex = new RegExp('^fix\\-|[^a-z]fix\\-', 'gim'); | ||
const featureRegex = new RegExp('^feature\\-|[^a-z]feature\\-', 'gim'); | ||
if (fixRegex.test(branch)) { | ||
console.log('Branch name contains "fix-", bumping a PATCH version'); | ||
if (releaseRegex.test(branch) || fixRegex.test(branch)) { | ||
console.log('Branch name contains "release-" or "fix-", bumping a PATCH version'); | ||
const version = bump(Version.PATCH); | ||
@@ -43,0 +44,0 @@ publish(version); |
{ | ||
"name": "hg-auto-semver", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Automatically bump versions according to hg parent branch name.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
4409
45