Skip to content

Commit f8a9a86

Browse files
author
Christopher - Marcel Böddecker
committed
Merge branch 'next'
2 parents 8a5ff61 + b7ad250 commit f8a9a86

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
## [3.9.0-next.1](https://github.com/ExtendRealityLtd/DevOps/compare/v3.8.0...v3.9.0-next.1) (2019-10-14)
1414

1515

16+
#### Features
17+
18+
* **templates:** pretty, sorted changelog/release notes in CD ([763cf1d](https://github.com/ExtendRealityLtd/DevOps/commit/763cf1dbc04060bf5e289cdad94fb4f4a19936bf))
19+
#### Bug Fixes
20+
21+
* **templates:** CD failure when commit body is empty ([34f4c71](https://github.com/ExtendRealityLtd/DevOps/commit/34f4c71f6282c624868a6d5c5ff38fa2e7c8088d))* **templates:** changelog/release note breaking change formatting ([7efda24](https://github.com/ExtendRealityLtd/DevOps/commit/7efda24500c52da0a262f549ed32a30c9200419a))* **templates:** release pre-release packages on the default channel ([fdc9579](https://github.com/ExtendRealityLtd/DevOps/commit/fdc9579d621250041d02fe13bdc2a9a0ba614ed8))* **templates:** remove release commits from changelog/release note ([cb47e13](https://github.com/ExtendRealityLtd/DevOps/commit/cb47e13133a89ab531866c37fde1b8ec2eb420e7))
22+
23+
## [3.9.0-next.1](https://github.com/ExtendRealityLtd/DevOps/compare/v3.8.0...v3.9.0-next.1) (2019-10-14)
24+
25+
1626
#### Features
1727

1828
* **templates:** pretty, sorted changelog/release notes in CD ([763cf1d](https://github.com/ExtendRealityLtd/DevOps/commit/763cf1dbc04060bf5e289cdad94fb4f4a19936bf))

templates/steps/cd.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,17 @@ steps:
135135
writerOpts: {
136136
finalizeContext: (context) => {
137137
const prefix = ' > '
138+
context.noteGroups.forEach(group => {
139+
group.notes.forEach(note => {
140+
if (note.text) {
141+
note.text = note.text.split('\n\n').map(paragraph => paragraph.split('\n').join(' ')).join('\n\n')
142+
}
143+
})
144+
})
138145
context.commitGroups.forEach(group => {
139146
group.commits.forEach(commit => {
140147
if (commit.body) {
141-
commit.body = prefix + commit.body.split('\n').join('\n' + prefix)
148+
commit.body = prefix + commit.body.split('\n\n').map(paragraph => paragraph.split('\n').join(' ')).join('\n' + prefix + '\n' + prefix)
142149
}
143150
})
144151
group.commits = group.commits.filter(commit => !(commit.type == 'Miscellaneous Chores' && commit.scope == 'release'))
@@ -148,9 +155,9 @@ steps:
148155
},
149156
mainTemplate: `
150157
{{> header}}
151-
152158
{{#if noteGroups}}
153159
{{#each noteGroups}}
160+
154161
#### :warning: {{title}} :warning:
155162
156163
{{#each notes}}
@@ -177,15 +184,15 @@ steps:
177184
{{/each}}
178185
{{/if}}
179186
180-
{{#each commitGroups}}
187+
{{~#each commitGroups}}
181188
{{#if title}}
189+
182190
#### {{title}}
183191
184192
{{/if}}
185193
{{#each commits}}
186194
{{> commit root=@root}}
187195
{{/each}}
188-
189196
{{/each}}
190197
`,
191198
commitPartial: `*{{#if scope}} **{{scope}}:**
@@ -249,8 +256,7 @@ steps:
249256
{{~/if}}{{/each}}
250257
{{~/if}}
251258
252-
{{~#if body}}
253-
259+
{{#if body}}
254260
{{body}}
255261
{{/if}}
256262
`,

0 commit comments

Comments
 (0)