CHANGELOG 自動更新モジュール
シンプル / changelog-config.js で変換ルールをかける
code: changelog-config.js:
'use strict'
module.exports = {
writerOpts: {
transform: (commit) => {
// chore, refactor, test などは除外
if (discard.includes(commit.type)) return;
// シンプルなヘッダーを作成
if (commit.scope) {
commit.header = ${commit.type}: ${commit.subject};
} else {
commit.header = ${commit.type}: ${commit.subject};
}
return commit;
},
commitPartial: '- {{header}}',
mainTemplate: '{{> header}}\n{{#each commits}}{{> commit}}\n{{/each}}'
}
}
タグも打つ
PR ベース