@semantic-release/release-notes-generator
Advanced tools
Comparing version 6.0.2 to 6.0.3
16
index.js
@@ -28,8 +28,13 @@ const url = require('url'); | ||
const {parserOpts, writerOpts} = await loadChangelogConfig(pluginConfig); | ||
commits = commits.map(rawCommit => | ||
Object.assign(rawCommit, conventionalCommitsParser(rawCommit.message, parserOpts)) | ||
); | ||
const {resource: hostname, port, name: repository, owner, protocols} = gitUrlParse(repositoryUrl); | ||
const protocol = protocols.includes('https') ? 'https' : protocols.includes('http') ? 'http' : 'https'; | ||
const {issue, commit, referenceActions, issuePrefixes} = | ||
find(HOSTS_CONFIG, conf => conf.hostname === hostname) || HOSTS_CONFIG.default; | ||
const parsedCommits = commits.map(rawCommit => ({ | ||
...rawCommit, | ||
...conventionalCommitsParser(rawCommit.message, {...parserOpts, referenceActions, issuePrefixes}), | ||
})); | ||
const previousTag = lastRelease.gitTag || lastRelease.gitHead; | ||
@@ -45,3 +50,4 @@ const currentTag = nextRelease.gitTag || nextRelease.gitHead; | ||
linkCompare: currentTag && previousTag, | ||
...(find(HOSTS_CONFIG, conf => conf.hostname === hostname) || HOSTS_CONFIG.default), | ||
issue, | ||
commit, | ||
}; | ||
@@ -56,5 +62,5 @@ | ||
return getStream(intoStream.obj(commits).pipe(conventionalChangelogWriter(context, writerOpts))); | ||
return getStream(intoStream.obj(parsedCommits).pipe(conventionalChangelogWriter(context, writerOpts))); | ||
} | ||
module.exports = releaseNotesGenerator; |
@@ -6,2 +6,4 @@ module.exports = { | ||
commit: 'commit', | ||
referenceActions: ['close', 'closes', 'closed', 'fix', 'fixes', 'fixed', 'resolve', 'resolves', 'resolved'], | ||
issuePrefixes: ['#', 'gh-'], | ||
}, | ||
@@ -12,2 +14,17 @@ bitbucket: { | ||
commit: 'commits', | ||
referenceActions: [ | ||
'close', | ||
'closes', | ||
'closed', | ||
'closing', | ||
'fix', | ||
'fixes', | ||
'fixed', | ||
'fixing', | ||
'resolve', | ||
'resolves', | ||
'resolved', | ||
'resolving', | ||
], | ||
issuePrefixes: ['#'], | ||
}, | ||
@@ -18,2 +35,4 @@ gitlab: { | ||
commit: 'commit', | ||
referenceActions: ['close', 'closes', 'closed', 'closing', 'fix', 'fixes', 'fixed', 'fixing'], | ||
issuePrefixes: ['#'], | ||
}, | ||
@@ -23,3 +42,18 @@ default: { | ||
commit: 'commit', | ||
referenceActions: [ | ||
'close', | ||
'closes', | ||
'closed', | ||
'closing', | ||
'fix', | ||
'fixes', | ||
'fixed', | ||
'fixing', | ||
'resolve', | ||
'resolves', | ||
'resolved', | ||
'resolving', | ||
], | ||
issuePrefixes: ['#', 'gh-'], | ||
}, | ||
}; |
@@ -1,1 +0,1 @@ | ||
{"name":"@semantic-release/release-notes-generator","description":"Customizable release-notes-generator plugin for semantic-release","version":"6.0.2","author":"Pierre Vanduynslager (https://twitter.com/@pvdlg_)","bugs":{"url":"https://github.com/semantic-release/release-notes-generator/issues"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"contributors":["Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)","Gregor Martynus (https://twitter.com/gr2m)"],"dependencies":{"conventional-changelog-angular":"^1.4.0","conventional-changelog-writer":"^2.0.1","conventional-commits-parser":"^2.0.0","debug":"^3.1.0","get-stream":"^3.0.0","git-url-parse":"^7.0.1","import-from":"^2.1.0","into-stream":"^3.1.0","lodash":"^4.17.4"},"devDependencies":{"ava":"^0.24.0","codecov":"^3.0.0","commitizen":"^2.9.6","conventional-changelog-atom":"^0.1.1","conventional-changelog-ember":"^0.2.6","conventional-changelog-eslint":"^0.2.0","conventional-changelog-express":"^0.2.0","conventional-changelog-jshint":"^0.2.0","cz-conventional-changelog":"^2.0.0","eslint-config-prettier":"^2.3.0","eslint-plugin-prettier":"^2.3.0","nyc":"^11.1.0","prettier":"~1.9.0","semantic-release":"^10.0.0","xo":"^0.18.2"},"engines":{"node":">=4"},"files":["lib","index.js"],"homepage":"https://github.com/semantic-release/release-notes-generator#readme","keywords":["changelog","conventional-changelog","conventional-commits","github","publish","release","release-note-generator","semantic-release"],"license":"MIT","main":"index.js","nyc":{"include":["lib/**/*.js","index.js"],"reporter":["json","text","html"],"all":true},"prettier":{"printWidth":120,"singleQuote":true,"bracketSpacing":false,"trailingComma":"es5"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/semantic-release/release-notes-generator.git"},"scripts":{"cm":"git-cz","codecov":"codecov -f coverage/coverage-final.json","lint":"xo","pretest":"npm run lint","semantic-release":"semantic-release","test":"nyc ava -v"},"xo":{"extends":["prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":2}}} | ||
{"name":"@semantic-release/release-notes-generator","description":"Customizable release-notes-generator plugin for semantic-release","version":"6.0.3","author":"Pierre Vanduynslager (https://twitter.com/@pvdlg_)","bugs":{"url":"https://github.com/semantic-release/release-notes-generator/issues"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"contributors":["Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)","Gregor Martynus (https://twitter.com/gr2m)"],"dependencies":{"conventional-changelog-angular":"^1.4.0","conventional-changelog-writer":"^2.0.1","conventional-commits-parser":"^2.0.0","debug":"^3.1.0","get-stream":"^3.0.0","git-url-parse":"^7.0.1","import-from":"^2.1.0","into-stream":"^3.1.0","lodash":"^4.17.4"},"devDependencies":{"ava":"^0.24.0","codecov":"^3.0.0","commitizen":"^2.9.6","conventional-changelog-atom":"^0.1.1","conventional-changelog-ember":"^0.2.6","conventional-changelog-eslint":"^0.2.0","conventional-changelog-express":"^0.2.0","conventional-changelog-jshint":"^0.2.0","cz-conventional-changelog":"^2.0.0","escape-string-regexp":"^1.0.5","eslint-config-prettier":"^2.3.0","eslint-plugin-prettier":"^2.3.0","nyc":"^11.1.0","prettier":"~1.9.0","semantic-release":"^10.0.0","xo":"^0.18.2"},"engines":{"node":">=4"},"files":["lib","index.js"],"homepage":"https://github.com/semantic-release/release-notes-generator#readme","keywords":["changelog","conventional-changelog","conventional-commits","github","publish","release","release-note-generator","semantic-release"],"license":"MIT","main":"index.js","nyc":{"include":["lib/**/*.js","index.js"],"reporter":["json","text","html"],"all":true},"prettier":{"printWidth":120,"singleQuote":true,"bracketSpacing":false,"trailingComma":"es5"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/semantic-release/release-notes-generator.git"},"scripts":{"cm":"git-cz","codecov":"codecov -f coverage/coverage-final.json","lint":"xo","pretest":"npm run lint","semantic-release":"semantic-release","test":"nyc ava -v"},"xo":{"extends":["prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":2}}} |
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
15370
148
16