balena-deploy-request 0.9.6-build-renovate-major-16-lint-staged-7a76bcdacf0dda77e2d37785ef64c18ff5e53133-1 → 0.10.0-build-since-param-cc882c9da177420fa1e419d2f071b661bff7b528-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.
- package/.versionbot/CHANGELOG.yml +19 -1
- package/CHANGELOG.md +7 -1
- package/package.json +2 -2
- package/src/index.js +17 -8
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Update the release notes message
|
|
3
|
+
hash: cc882c9da177420fa1e419d2f071b661bff7b528
|
|
4
|
+
body: ""
|
|
5
|
+
footer:
|
|
6
|
+
Change-type: patch
|
|
7
|
+
change-type: patch
|
|
8
|
+
author: Thodoris Greasidis
|
|
9
|
+
- subject: Add the --since parameter
|
|
10
|
+
hash: cc4d05056c38f86319f46e35dcc9e8561e28a836
|
|
11
|
+
body: ""
|
|
12
|
+
footer:
|
|
13
|
+
Change-type: minor
|
|
14
|
+
change-type: minor
|
|
15
|
+
author: Thodoris Greasidis
|
|
16
|
+
version: 0.10.0
|
|
17
|
+
title: ""
|
|
18
|
+
date: 2026-01-13T13:33:08.556Z
|
|
1
19
|
- commits:
|
|
2
20
|
- subject: Update dependency lint-staged to v16
|
|
3
21
|
hash: 7a76bcdacf0dda77e2d37785ef64c18ff5e53133
|
|
@@ -9,7 +27,7 @@
|
|
|
9
27
|
author: balena-renovate[bot]
|
|
10
28
|
version: 0.9.6
|
|
11
29
|
title: ""
|
|
12
|
-
date: 2025-
|
|
30
|
+
date: 2025-06-07T23:23:30.129Z
|
|
13
31
|
- commits:
|
|
14
32
|
- subject: Format with prettify
|
|
15
33
|
hash: fc40307b1450be7555be22f5b182348d0160d073
|
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ 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.10.0
|
|
8
|
+
## (2026-01-13)
|
|
9
|
+
|
|
10
|
+
* Update the release notes message [Thodoris Greasidis]
|
|
11
|
+
* Add the --since parameter [Thodoris Greasidis]
|
|
12
|
+
|
|
7
13
|
# v0.9.6
|
|
8
|
-
## (2025-
|
|
14
|
+
## (2025-06-07)
|
|
9
15
|
|
|
10
16
|
* Update dependency lint-staged to v16 [balena-renovate[bot]]
|
|
11
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-deploy-request",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-build-since-param-cc882c9da177420fa1e419d2f071b661bff7b528-1",
|
|
4
4
|
"description": "A simple script for generating deploy requests along with release notes",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"prettier": "^3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"versionist": {
|
|
39
|
-
"publishedAt": "
|
|
39
|
+
"publishedAt": "2026-01-13T13:33:08.612Z"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const { git, gitMultilineResults, toTitleCase } = require('./utils');
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const argvWoFlags = [];
|
|
5
|
+
const flags = {};
|
|
6
|
+
|
|
7
|
+
for (let i = 2; i < process.argv.length; i++) {
|
|
8
|
+
if (typeof process.argv[i] === 'string' && process.argv[i].startsWith('--')) {
|
|
9
|
+
flags[process.argv[i].slice(2)] = process.argv[i + 1];
|
|
10
|
+
i++;
|
|
11
|
+
} else {
|
|
12
|
+
argvWoFlags.push(process.argv[i]);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let packageName = argvWoFlags[0];
|
|
5
17
|
if (!packageName) {
|
|
6
18
|
try {
|
|
7
19
|
packageName = JSON.parse(fs.readFileSync('./package.json').toString()).name;
|
|
@@ -58,8 +70,7 @@ function getLatestProdInfo() {
|
|
|
58
70
|
};
|
|
59
71
|
}
|
|
60
72
|
|
|
61
|
-
const
|
|
62
|
-
const prevVersionTag = latestProdInfo.latestProdVersionTag;
|
|
73
|
+
const prevVersionTag = flags.since || getLatestProdInfo().latestProdVersionTag;
|
|
63
74
|
|
|
64
75
|
const rawChangelog = gitMultilineResults(
|
|
65
76
|
`diff -U0 ${prevVersionTag} CHANGELOG.md`,
|
|
@@ -91,7 +102,7 @@ const notableChanges = [];
|
|
|
91
102
|
for (const l of changelog) {
|
|
92
103
|
// Pick up to 1 level of nested changes
|
|
93
104
|
const match = l.match(
|
|
94
|
-
/^((?<nesting>[>]{1,2}) )?(\*|<summary>) (?<change
|
|
105
|
+
/^((?<nesting>[>]{1,2}) )?(\*|<summary>) (?<change>[^<]+)( <\/summary>)?$/,
|
|
95
106
|
);
|
|
96
107
|
if (
|
|
97
108
|
match != null &&
|
|
@@ -104,12 +115,10 @@ for (const l of changelog) {
|
|
|
104
115
|
}
|
|
105
116
|
|
|
106
117
|
const result = [
|
|
107
|
-
`#
|
|
108
|
-
'',
|
|
109
|
-
`The ${moduleName} has been updated from ${oldVersion} to ${newVersion}`,
|
|
118
|
+
`#release-notes Update balena-io/${packageName} to ${newVersion}`,
|
|
110
119
|
'',
|
|
111
120
|
'Notable changes',
|
|
112
|
-
'*
|
|
121
|
+
'* <only keep the important and rephrase>',
|
|
113
122
|
...notableChanges,
|
|
114
123
|
'',
|
|
115
124
|
'<details><summary>Expand changelog</summary>',
|