Merge pull request #2669 from balena-io/fix-versionist-conf

Fix versionist conf
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2019-02-27 22:09:02 +01:00 committed by GitHub
commit 752ba4405c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## v1.5.2 - 2019-02-26
- Enable versionist editVersion
## v1.5.1 - 2019-02-22
### Misc

2
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-etcher",
"version": "1.5.0",
"version": "1.5.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -31,9 +31,7 @@ module.exports = {
fromLine: 5
},
includeCommitWhen: (commit) => {
return commit.footer['Changelog-entry']
},
includeCommitWhen: 'has-changelog-entry',
getIncrementLevelFromCommit: (commit) => {
if (/none/i.test(commit.footer['Change-type'])) {
@ -44,6 +42,9 @@ module.exports = {
},
transformTemplateData: (data) => {
if (data.commits.length === 0) {
throw new Error('No commits annotated with Changelog-entry')
}
data.features = data.commits.filter((commit) => {
return commit.subject.type === 'feat'
})