File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 22
33const execSync = require ( 'child_process' ) . execSync ;
44const fs = require ( 'fs' )
5- const semver = require ( 'versionist /node_modules/balena-semver' )
5+ const semver = require ( '. /node_modules/balena-semver' )
66
77const getAuthor = ( commitHash ) => {
88 return execSync ( `git show --quiet --format="%an" ${ commitHash } ` , {
@@ -83,15 +83,19 @@ module.exports = {
8383 return data ;
8484 } ,
8585
86- template : [
87- '## v{{version}} - {{moment date "Y-MM-DD"}}' ,
88- '' ,
89- '{{#each commits}}' ,
90- '{{#if this.author}}' ,
91- '* {{capitalize this.subject}} [{{this.author}}]' ,
92- '{{else}}' ,
93- '* {{capitalize this.subject}}' ,
94- '{{/if}}' ,
95- '{{/each}}'
96- ] . join ( '\n' )
86+ transformTemplateDataAsync : {
87+ preset : 'nested-changelogs' ,
88+ upstream : [
89+ { { #upstream} }
90+ {
91+ pattern : '{{{pattern}}}' ,
92+ repo : '{{repo}}' ,
93+ owner : '{{owner}}' ,
94+ ref : '{{ref}}'
95+ } ,
96+ { { / u p s t r e a m } }
97+ ]
98+ } ,
99+
100+ template : 'default'
97101}
You can’t perform that action at this time.
0 commit comments