mirror of
https://github.com/brucificus/vb6-antlr4-typescript.git
synced 2025-12-16 11:57:03 +03:00
👷 Adds Auto-generated Release Notes
This commit is contained in:
@@ -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",
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user