CHANGELOG 自動更新モジュール
Keep a Changelog
conventional-changelog/conventional-changelog: Generate changelogs and release notes from a project's commit messages and metadata.
シンプル / changelog-config.js で変換ルールをかける
code: changelog-config.js:
'use strict'
module.exports = {
writerOpts: {
transform: (commit) => {
// chore, refactor, test などは除外
const discard = 'chore', 'refactor', 'test', 'style';
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}}',
headerPartial: '## {{version}} ({{date}})',
mainTemplate: '{{> header}}\n{{#each commits}}{{> commit}}\n{{/each}}'
}
}
absolute-version/commit-and-tag-version: Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
タグも打つ
googleapis/release-please: generate release PRs based on the conventionalcommits.org spec
PR ベース