File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,29 @@ export const generateChangelog: typeof def = async ({
39
39
{{~/if}}
40
40
{{~#if isPatch~}} </small> {{~/if}}
41
41
` . trim ( ) ;
42
- preset . writer . mainTemplate ! += "\n" ;
42
+ preset . writer . mainTemplate =
43
+ `
44
+ {{> header}}
45
+ {{#if noteGroups}}
46
+ {{#each noteGroups}}
47
+
48
+ ### ⚠ {{title}}
49
+
50
+ {{#each notes}}
51
+ * {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{commit.subject}} {{#if commit.hash}}([{{commit.shortHash}}](https://github.com/{{@root.owner}}/{{@root.repository}}/commit/{{commit.hash}})){{/if}}
52
+ {{/each}}
53
+ {{/each}}
54
+ {{/if}}
55
+ {{#each commitGroups}}
56
+
57
+ {{#if title}}
58
+ ### {{title}}
59
+
60
+ {{/if}}
61
+ {{#each commits}}
62
+ {{> commit root=@root}}
63
+ {{/each}}
64
+ {{/each}}` . trim ( ) + "\n" ;
43
65
44
66
const pkgDir = getPkgDir ( ) ;
45
67
You can’t perform that action at this time.
0 commit comments