Skip to content

Commit 3fefd6b

Browse files
committed
Test
Signed-off-by: Kyle Harding <[email protected]>
1 parent f2f43a8 commit 3fefd6b

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

versionist.conf.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const execSync = require('child_process').execSync;
44
const fs = require('fs')
5-
const semver = require('versionist/node_modules/balena-semver')
5+
const semver = require('./node_modules/balena-semver')
66

77
const 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+
{{/upstream}}
97+
]
98+
},
99+
100+
template: 'default'
97101
}

0 commit comments

Comments
 (0)