Skip to content

Commit

Permalink
βœ¨πŸ‘· Adds Auto-generated Release Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Mar 24, 2020
1 parent 7767824 commit d9a7c37
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
const { promisify } = require('util');
const joinPath = require('path').join;
const dateFormat = require('dateformat');
const readFileAsync = promisify(require('fs').readFile);

const TEMPLATE_DIR = "node_modules/semantic-release-gitmoji/lib/assets/templates/"

const template = readFileAsync(joinPath(TEMPLATE_DIR, 'default-template.hbs'));
const commitTemplate = readFileAsync(joinPath(TEMPLATE_DIR, 'commit-template.hbs'));

module.exports = {
branches: [
"+([0-9])?(.{+([0-9]),x}).x",
Expand All @@ -13,6 +23,20 @@ module.exports = {
major: ["πŸ’₯"],
minor: ["✨", "πŸ—"],
patch: ["πŸ›", "πŸš‘", "πŸ”’", "β™»", "πŸ’š", "⬆", "⬇", "βž•", "βž–", "πŸ”§"]
},
releaseNotes: {
template: template,
partials: { commitTemplate },
helpers: {
datetime: function (format = 'UTC:yyyy-mm-dd') {
return dateFormat(new Date(), format)
}
},
issueResolution: {
template: '{baseUrl}/{owner}/{repo}/issues/{ref}',
baseUrl: 'https://github.com',
source: 'github.com'
}
}
}
],
Expand Down

0 comments on commit d9a7c37

Please sign in to comment.