@lmc-eu/conventional-changelog-lmc-bitbucket
Advanced tools
Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "@lmc-eu/conventional-changelog-lmc-bitbucket", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "conventional-changelog LMC preset for BitBucket", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "fd178f5b9a1d44fb7e62ac504d57cd3ba0f447d0" | ||
"gitHead": "5effef42797b7d6fabab9e54b3a715c276e79e2f" | ||
} |
@@ -10,2 +10,3 @@ # @lmc-eu/conventional-changelog-lmc-bitbucket | ||
NPM: | ||
``` | ||
@@ -16,2 +17,3 @@ npm i --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-bitbucket | ||
Yarn: | ||
``` | ||
@@ -28,3 +30,3 @@ yarn add --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-bitbucket | ||
```javascript | ||
'use strict' | ||
'use strict'; | ||
@@ -45,3 +47,3 @@ module.exports = { | ||
"changelog": "conventional-changelog -p lmc-bitbucket -i CHANGELOG.md -s", | ||
"changelog:origin": "conventional-changelog -p lmc-bitbucket -i CHANGELOG.md -s -r 0", | ||
"changelog:origin": "conventional-changelog -p lmc-bitbucket -i CHANGELOG.md -s -r 0" | ||
} | ||
@@ -48,0 +50,0 @@ } |
@@ -19,3 +19,3 @@ const compareFunc = require('compare-func'); | ||
commit.notes.forEach(function(note) { | ||
commit.notes.forEach(function (note) { | ||
note.title = 'BREAKING CHANGES'; | ||
@@ -70,3 +70,3 @@ discard = false; | ||
if (typeof transformedCommit.subject === 'string') { | ||
transformedCommit.subject = transformedCommit.subject.replace(/#([a-zA-Z0-9\-]+)/g, function(_, issue) { | ||
transformedCommit.subject = transformedCommit.subject.replace(/#([a-zA-Z0-9\-]+)/g, function (_, issue) { | ||
issues.push(issue); | ||
@@ -79,9 +79,12 @@ | ||
// remove references that already appear in the subject | ||
transformedCommit.references = commit.references.filter(reference => { | ||
if (issues.indexOf(reference.issue) === -1) { | ||
return true; | ||
} | ||
transformedCommit.references = commit.references | ||
.filter((reference) => { | ||
if (issues.indexOf(reference.issue) === -1) { | ||
return true; | ||
} | ||
return false; | ||
}).map((reference) => formatIssue(issueUrl, reference.issue)).join(', '); | ||
return false; | ||
}) | ||
.map((reference) => formatIssue(issueUrl, reference.issue)) | ||
.join(', '); | ||
@@ -88,0 +91,0 @@ return transformedCommit; |
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
9504
13
109
52