@lacolaco/gh-commits-changelog
v1.0.4
Published
Generate conventional-changelog from GitHub commits instead of raw git data
Downloads
4
Readme
gh-commits-changelog
Util for GitHub API + conventional-changelog.
Experimental and unstable
const ghCommitsChangelog = require('@lacolaco/gh-commits-changelog');
const octokit = require('@octokit/rest')();
const { data } = await octokit.pulls.listCommits(params);
const changelog = await ghCommitsChangelog(data, {
host: 'https://github.com',
owner,
repository,
currentTag: 'xxxx', // base hash
previousTag: 'xxxx', // head hash
version: 'version name'
});
LICENSE: MIT