balena-deploy-request 0.8.4-build-renovate-husky-8-x-003e1859498de71607e0ead85791544fad80c864-1 → 0.9.0-build-nested-dependencies-9e55bbf2170308b11872060089ad6e7e668ee444-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,14 @@
1
1
  - commits:
2
- - subject: Update dependency husky to v8
3
- hash: 003e1859498de71607e0ead85791544fad80c864
4
- body: |
5
- Update husky from 2.7.0 to 8.0.3
2
+ - subject: Add nested changelog entries to the proposed notable changes
3
+ hash: 9e55bbf2170308b11872060089ad6e7e668ee444
4
+ body: ""
6
5
  footer:
7
- Change-type: patch
8
- change-type: patch
9
- author: Self-hosted Renovate Bot
10
- version: 0.8.4
6
+ Change-type: minor
7
+ change-type: minor
8
+ author: Thodoris Greasidis
9
+ version: 0.9.0
11
10
  title: ""
12
- date: 2023-06-16T14:44:28.095Z
11
+ date: 2023-06-16T14:20:01.540Z
13
12
  - commits:
14
13
  - subject: Replace balenaCI with flowzone
15
14
  hash: d42ed86c90fa770f03b9bb683202757ea19780a7
package/CHANGELOG.md CHANGED
@@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
- # v0.8.4
7
+ # v0.9.0
8
8
  ## (2023-06-16)
9
9
 
10
- * Update dependency husky to v8 [Self-hosted Renovate Bot]
10
+ * Add nested changelog entries to the proposed notable changes [Thodoris Greasidis]
11
11
 
12
12
  # v0.8.3
13
13
  ## (2023-06-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-deploy-request",
3
- "version": "0.8.4-build-renovate-husky-8-x-003e1859498de71607e0ead85791544fad80c864-1",
3
+ "version": "0.9.0-build-nested-dependencies-9e55bbf2170308b11872060089ad6e7e668ee444-1",
4
4
  "description": "A simple script for generating deploy requests along with release notes",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "homepage": "https://github.com/balena-io-modules/balena-deploy-request#readme",
32
32
  "devDependencies": {
33
- "husky": "^8.0.0",
33
+ "husky": "^2.2.0",
34
34
  "lint-staged": "^8.1.6",
35
35
  "prettier": "^1.17.1"
36
36
  },
37
37
  "versionist": {
38
- "publishedAt": "2023-06-16T14:44:28.189Z"
38
+ "publishedAt": "2023-06-16T14:20:01.627Z"
39
39
  }
40
40
  }
package/src/index.js CHANGED
@@ -87,7 +87,21 @@ const date = new Date().toISOString().match(/\d+-\d+-\d+/)[0];
87
87
 
88
88
  const changelog = rawChangelog.map(l => l.replace(/^\+/, ''));
89
89
 
90
- const notableChanges = changelog.filter(l => l.match(/^\* /));
90
+ const notableChanges = [];
91
+ for (const l of changelog) {
92
+ // Pick up to 1 level of nested changes
93
+ const match = l.match(
94
+ /^((?<nesting>[>]{1,2}) )?(\*|<summary>) (?<change>\w[^<]+)( <\/summary>)?$/,
95
+ );
96
+ if (
97
+ match != null &&
98
+ !match.groups.change.startsWith('Update dependencies [')
99
+ ) {
100
+ notableChanges.push(
101
+ `* ${match.groups.nesting ?? ''}${match.groups.change}`,
102
+ );
103
+ }
104
+ }
91
105
 
92
106
  const result = [
93
107
  '================================ Deploy request ================================',