Skip to content

Commit d1e053a

Browse files
authored
Merge pull request #992 from Patternslib/fix-changelog
Fix changelog
2 parents f371cbd + 276b2d5 commit d1e053a

File tree

4 files changed

+57
-6
lines changed

4 files changed

+57
-6
lines changed

.release-it.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
const fs = require("fs");
22
const path = require("path");
33

4+
const main_template = fs
5+
.readFileSync(
6+
path.resolve(__dirname, ".release-it", "conventional-changelog-template.hbs")
7+
)
8+
.toString();
9+
410
const commits_template = fs
511
.readFileSync(
612
path.resolve(__dirname, ".release-it", "conventional-changelog-commit.hbs")
@@ -42,6 +48,7 @@ module.exports = {
4248
],
4349
},
4450
writerOpts: {
51+
mainTemplate: main_template,
4552
commitPartial: commits_template,
4653
},
4754
},

.release-it/conventional-changelog-commit.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
<br>
3+
14
*{{#if scope}} **{{scope}}:**
25
{{~/if}} {{#if subject}}
36
{{~subject}}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{> header}}
2+
3+
{{#if noteGroups}}
4+
{{#each noteGroups}}
5+
6+
### ⚠ {{title}}
7+
8+
{{#each notes}}
9+
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
10+
{{/each}}
11+
{{/each}}
12+
{{/if}}
13+
{{#each commitGroups}}
14+
15+
{{#if title}}
16+
### {{title}}
17+
18+
{{/if}}
19+
{{#each commits}}
20+
{{> commit root=@root}}
21+
{{/each}}
22+
23+
{{/each}}
24+
25+
<br>
26+
<br>

CHANGES.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
* **pat tooltip tests:** Add numbers to test cases so that they can be esier run selectively by filtering. ([72611af](https://github.com/Patternslib/patterns/commit/72611afe0953939e4ac81bac74a9706628e5c520))
2929

30-
* **pat tooltip tests:** Restore all mocks completly after each test run. ([8edba74](https://github.com/Patternslib/patterns/commit/8edba744c9ece324b83db12ccfb4a429cc56e3e5))## [7.4.0](https://github.com/Patternslib/patterns/compare/7.3.0...7.4.0) (2022-03-24)
30+
* **pat tooltip tests:** Restore all mocks completly after each test run. ([8edba74](https://github.com/Patternslib/patterns/commit/8edba744c9ece324b83db12ccfb4a429cc56e3e5))
31+
32+
33+
## [7.4.0](https://github.com/Patternslib/patterns/compare/7.3.0...7.4.0) (2022-03-24)
3134

3235

3336
### Features
@@ -72,7 +75,10 @@
7275

7376
* **pat inject:** Un-underscore pat-inject. ([584420c](https://github.com/Patternslib/patterns/commit/584420ce5f77b1afaa0c84cee11d1dc36b133b88))
7477

75-
* **pat navigation:** Remove console.log statement from tests. ([a20fbd4](https://github.com/Patternslib/patterns/commit/a20fbd4c051d6f619f33a5af2d219c560653e7a3))## [7.3.0](https://github.com/Patternslib/patterns/compare/7.2.0...7.3.0) (2022-03-17)
78+
* **pat navigation:** Remove console.log statement from tests. ([a20fbd4](https://github.com/Patternslib/patterns/commit/a20fbd4c051d6f619f33a5af2d219c560653e7a3))
79+
80+
81+
## [7.3.0](https://github.com/Patternslib/patterns/compare/7.2.0...7.3.0) (2022-03-17)
7682

7783

7884
### Features
@@ -95,7 +101,10 @@
95101

96102
### Maintenance
97103

98-
* **pat bumper:** Minor code cleanup. ([edfec61](https://github.com/Patternslib/patterns/commit/edfec619e7c54786b5a82914dce8efaf7fd2c3c8))## [7.2.0](https://github.com/Patternslib/patterns/compare/7.1.3...7.2.0) (2022-03-16)
104+
* **pat bumper:** Minor code cleanup. ([edfec61](https://github.com/Patternslib/patterns/commit/edfec619e7c54786b5a82914dce8efaf7fd2c3c8))
105+
106+
107+
## [7.2.0](https://github.com/Patternslib/patterns/compare/7.1.3...7.2.0) (2022-03-16)
99108

100109

101110
### Features
@@ -132,7 +141,10 @@ This change is made for these reasons:
132141

133142
* **pat tabs:** Update import for get_css_value. ([ce50044](https://github.com/Patternslib/patterns/commit/ce500448d87358f86ee7be9833301afa0577c7cc))
134143

135-
* **tests:** Add an IntersectionObserver mock for testing. ([8e84d0f](https://github.com/Patternslib/patterns/commit/8e84d0fc63e04e1d044e23546543c6cdc67f5927))### [7.1.3](https://github.com/Patternslib/patterns/compare/7.1.2...7.1.3) (2022-03-14)
144+
* **tests:** Add an IntersectionObserver mock for testing. ([8e84d0f](https://github.com/Patternslib/patterns/commit/8e84d0fc63e04e1d044e23546543c6cdc67f5927))
145+
146+
147+
### [7.1.3](https://github.com/Patternslib/patterns/compare/7.1.2...7.1.3) (2022-03-14)
136148

137149

138150
### Bug Fixes
@@ -143,7 +155,10 @@ This change is made for these reasons:
143155

144156
### Maintenance
145157

146-
* Upgrade dependencies. ([c0206d1](https://github.com/Patternslib/patterns/commit/c0206d18767042d3b29f472fc744eb5c67c655a3))### [7.1.2](https://github.com/Patternslib/patterns/compare/7.1.1...7.1.2) (2022-03-14)
158+
* Upgrade dependencies. ([c0206d1](https://github.com/Patternslib/patterns/commit/c0206d18767042d3b29f472fc744eb5c67c655a3))
159+
160+
161+
### [7.1.2](https://github.com/Patternslib/patterns/compare/7.1.1...7.1.2) (2022-03-14)
147162

148163

149164
### Bug Fixes
@@ -2012,4 +2027,4 @@ The CSS id selector is defined by an optional URL fragment in the pre-configured
20122027

20132028
## 1.0.0 - Released January 28, 2013
20142029

2015-
- First official release.
2030+
- First official release.

0 commit comments

Comments
 (0)