@cjbarth/github-release-notes
Version:
Create a release from a tag and uses issues or commits to creating the release notes. It also can generate a CHANGELOG.md file based on the release notes (or generate a brand new).
17 lines • 593 B
JavaScript
module.exports = {
// NOTE: check if author is present as might be returned as null.
commit: function commit(_ref) {
var message = _ref.message,
url = _ref.url,
author = _ref.author,
name = _ref.name;
return "- [".concat(message, "](").concat(url, ") - ").concat(author ? "@".concat(author) : name);
},
issue: "- {{labels}}{{name}} [{{text}}]({{url}})",
label: "[**{{label}}**] ",
noLabel: "closed",
group: "\n### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n\n{{body}}",
releaseSeparator: "\n---\n\n"
};