-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to configure "angular" preset to print docs, style, etc. #77
Comments
The changelog is generated by conventional-changelog-angular by default and it's over there that the type of commit to include in the change log are determined. If you want to include other type of commit in the changelog you can create your own preset (based on semantic-release passes all the commit to |
Hi @pvdlg, cheers |
I had the same exact question about including all Angular commit types in release notes. I solved it by providing a custom See my POC here: release.config.js |
To anyone who also ends up here, the trick is to use // release.config.js
module.exports = {
plugins: [
[
'@semantic-release/commit-analyzer',
{
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
preset: 'angular',
releaseRules: [
{ type: 'chore', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
],
},
],
[
'@semantic-release/release-notes-generator',
{
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'build', section: 'Build System', hidden: false },
{ type: 'chore', section: 'Build System', hidden: false },
{ type: 'ci', section: 'Continuous Integration', hidden: false },
{ type: 'docs', section: 'Documentation', hidden: false },
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'perf', section: 'Performance Improvements', hidden: false },
{ type: 'refactor', section: 'Code Refactoring', hidden: false },
{ type: 'style', section: 'Styles', hidden: false },
{ type: 'test', section: 'Tests', hidden: false },
],
},
writerOpts: {
commitsSort: ['subject', 'scope'],
},
},
],
],
};
|
Hi guys,
i made a lot of research and even sniffed the repositories to find a proper solution but it doesn't work out for me. Therefore i decided to ask here for help.
My goal is to
generateNotes
even for commits prefixed withdocs:
,style:
,ci:
, etc.Right now only
fix:
,feat:
andbreacking change
are printed toCHANGELOG.md
and GitHub releases.My configuration looks like this:
I know that
angular
is the default preset forgenerateNotes
but i added it to be explicit for everyone.I appreciate every single hint, link or solution snippet.
Thanks in advance.
The text was updated successfully, but these errors were encountered: