@inett/semantic-release-unsquash
Version:
Forked version of semantic-release-unsquash w/o release-notes-generator
51 lines (48 loc) โข 1.72 kB
JavaScript
const defaultCommitAnalyzerConfig = {
preset: 'conventionalcommits',
releaseRules: [
{ type: 'feat', release: 'minor' },
{ type: 'perf', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'change', release: 'minor' },
{ type: 'hotfix', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'test', release: 'patch' },
{ type: 'chore', release: 'patch' },
{ type: 'chore', release: false, scope: 'release' },
],
parserOpts: {
noteKeywords: ['BREAKING CHANGES', 'BREAKING CHANGE', 'BREAKING'],
},
};
const defaultNotesGeneratorConfig = {
preset: 'conventionalcommits',
parserOpts: {
noteKeywords: ['BREAKING CHANGES', 'BREAKING CHANGE', 'BREAKING'],
},
linkCompare: true,
linkReferences: true,
presetConfig: {
types: [
{ type: 'feat', section: '๐ Features', hidden: false },
{ type: 'perf', section: 'โก๏ธ Performance', hidden: false },
{ type: 'fix', section: '๐ Bug Fixes', hidden: false },
{ type: 'change', section: '๐งฐ Changes', hidden: false },
{ type: 'hotfix', section: '๐ Bug Fixes', hidden: false },
{ type: 'docs', section: '๐ Docs', hidden: false },
{ type: 'style', section: '๐งฐ Changes', hidden: false },
{ type: 'refactor', section: '๐ง Refactor', hidden: false },
{ type: 'test', section: '๐งช Tests', hidden: false },
{ type: 'chore', section: '๐ง Miscellaneous Chores', hidden: false },
],
},
writerOpts: {
commitsSort: ['section', 'scope'],
},
};
module.exports = {
defaultCommitAnalyzerConfig,
defaultNotesGeneratorConfig,
};