A JavaScript-Library version of git-extras/git-changelog
- npm
npm install changelogit --save
import changelogit from 'changelogit';
changelogit('v1.0.0', 'v2.0.0', {
titleTag: 'n.n.n', // [default: n.n.n] Tag for untagged commits
listAll: false, // [default: false] true: Retrieve all commits, false: Only untagged commits
noMerges: false, // [default: false] true: Suppress commits from merged branches
mergesOnly: false, // [default: false] true: Only uses merge commits
}).then((changelog) => {
// Print changelog (in JSON)
console.info(JSON.stringify(changelog, null, ' '));
});
MIT