@khala/commit-analyzer-wildcard
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,9 +11,12 @@ const releaseTypes = ['major', 'minor', 'patch', 'prerelease']; | ||
let releaseNumber = 3; | ||
analyzeCommits.map((onePlugin) => { | ||
patterns = { | ||
...patterns, | ||
...onePlugin.patterns, | ||
}; | ||
return null; | ||
}); | ||
if (analyzeCommits instanceof Array) { | ||
analyzeCommits.map((onePlugin) => { | ||
patterns = { | ||
...patterns, | ||
...onePlugin.patterns, | ||
}; | ||
return null; | ||
}); | ||
} | ||
logger.log(`Using patterns: | ||
@@ -20,0 +23,0 @@ major - ${patterns.major} |
{ | ||
"name": "@khala/commit-analyzer-wildcard", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Commit analyzer for semantic-release based on wildcards", | ||
@@ -5,0 +5,0 @@ "main": "analyzer.js", |
@@ -33,2 +33,25 @@ # commit-analyzer-wildcard | ||
``` | ||
## Default usage | ||
Simply add some special characters to any of your commit messages and new release will be triggered | ||
* Major - `<?.?.x>` | ||
* Minor - `<?.x.x>` or `<?.x.?>` | ||
* Bug - `<x.x.x>` or `<x.x.?>` or `<x.?.x>` or `<x.?.?>` | ||
* No release - `<no>` | ||
To trigger automatic release add this to `package.json` and install [semantic-release](https://www.npmjs.com/package/semantic-release) | ||
```JSON | ||
{ | ||
"scripts": { | ||
"release": "semantic-release" | ||
} | ||
} | ||
``` | ||
Settings for travis is | ||
```YML | ||
after_success: | ||
- npm run release | ||
``` | ||
## Options | ||
@@ -35,0 +58,0 @@ |
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
15989
46
77