Skip to content

Commit 3a51c64

Browse files
committed
chore: normalize section spacing in changelog generation script to prevent extra blank lines
1 parent a0a448d commit 3a51c64

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

CHANGELOG.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Future changes will appear here.
44

5-
65
## [1.6.0] - 2025-11-12
76

87
### Features
@@ -38,7 +37,6 @@ Future changes will appear here.
3837

3938
- release v1.5.18 ([#485](https://github.com/autonomys/auto-sdk/pull/485)) [@clostao](https://github.com/clostao)
4039

41-
4240
## [1.5.18] - 2025-09-24
4341

4442
### Features
@@ -51,7 +49,6 @@ Future changes will appear here.
5149

5250
- v1.5.17 ([#476](https://github.com/autonomys/auto-sdk/pull/476)) [@jfrank-summit](https://github.com/jfrank-summit)
5351

54-
5552
## [1.5.17] - 2025-09-22
5653

5754
### Features
@@ -62,7 +59,6 @@ Future changes will appear here.
6259

6360
- v1.5.16 ([#473](https://github.com/autonomys/auto-sdk/pull/473)) [@jfrank-summit](https://github.com/jfrank-summit)
6461

65-
6662
## [1.5.16] - 2025-09-18
6763

6864
### Features
@@ -77,7 +73,6 @@ Future changes will appear here.
7773

7874
- v1.5.15 ([#470](https://github.com/autonomys/auto-sdk/pull/470)) [@jfrank-summit](https://github.com/jfrank-summit)
7975

80-
8176
## [1.5.15] - 2025-09-10
8277

8378
### Features
@@ -93,7 +88,6 @@ Future changes will appear here.
9388

9489
- v1.5.14 ([#465](https://github.com/autonomys/auto-sdk/pull/465)) [@jfrank-summit](https://github.com/jfrank-summit)
9590

96-
9791
## [1.5.14] - 2025-08-08
9892

9993
### Features
@@ -104,7 +98,6 @@ Future changes will appear here.
10498

10599
- v1.5.13 ([#461](https://github.com/autonomys/auto-sdk/pull/461)) [@jfrank-summit](https://github.com/jfrank-summit)
106100

107-
108101
## [1.5.13] - 2025-08-08
109102

110103
### Features
@@ -119,7 +112,6 @@ Future changes will appear here.
119112

120113
- update dependency @polkadot/extension-inject to ^0.58.9 ([#358](https://github.com/autonomys/auto-sdk/pull/358)) [@renovate[bot]](https://github.com/apps/renovate)
121114

122-
123115
## [1.5.12] - 2025-07-29
124116

125117
### Features
@@ -134,14 +126,12 @@ Future changes will appear here.
134126
- fix changelog generator ([#452](https://github.com/autonomys/auto-sdk/pull/452)) [@clostao](https://github.com/clostao)
135127
- update dependency eslint-config-prettier to ^10.1.5 ([#370](https://github.com/autonomys/auto-sdk/pull/370)) [@renovate[bot]](https://github.com/apps/renovate)
136128

137-
138129
## [1.5.11] - 2025-07-21
139130

140131
### Features
141132

142133
- add get node method ([#454](https://github.com/autonomys/auto-sdk/pull/454)) [@clostao](https://github.com/clostao)
143134

144-
145135
## [1.5.10] - 2025-07-17
146136

147137
### Features
@@ -152,14 +142,12 @@ Future changes will appear here.
152142

153143
- release v1.5.9 ([#451](https://github.com/autonomys/auto-sdk/pull/451)) [@jfrank-summit](https://github.com/jfrank-summit)
154144

155-
156145
## [1.5.9] - 2025-07-15
157146

158147
### Features
159148

160149
- simplify `nominatorPosition` to use runtime api ([#450](https://github.com/autonomys/auto-sdk/pull/450)) [@jfrank-summit](https://github.com/jfrank-summit)
161150

162-
163151
## [1.5.8] - 2025-07-15
164152

165153
### Features
@@ -174,14 +162,12 @@ Future changes will appear here.
174162

175163
- bump version to v1.5.7 ([#445](https://github.com/autonomys/auto-sdk/pull/445)) [@clostao](https://github.com/clostao)
176164

177-
178165
## [1.5.7] - 2025-07-09
179166

180167
### Code Refactoring
181168

182169
- update sdk structure for avoid deps issues ([#443](https://github.com/autonomys/auto-sdk/pull/443)) [@clostao](https://github.com/clostao)
183170

184-
185171
## [1.5.6] - 2025-07-08
186172

187173
### Features
@@ -192,15 +178,13 @@ Future changes will appear here.
192178

193179
- v1.5.5 ([#441](https://github.com/autonomys/auto-sdk/pull/441)) [@jfrank-summit](https://github.com/jfrank-summit)
194180

195-
196181
## [1.5.5] - 2025-07-02
197182

198183
### Features
199184

200185
- add headDomainNumber function to retrieve latest block number for a specific domain ([#440](https://github.com/autonomys/auto-sdk/pull/440)) [@jfrank-summit](https://github.com/jfrank-summit)
201186
- add storage fee refund to pending withdrawals ([#439](https://github.com/autonomys/auto-sdk/pull/439)) [@jfrank-summit](https://github.com/jfrank-summit)
202187

203-
204188
## [1.5.4] - 2025-07-01
205189

206190
### Features
@@ -211,7 +195,6 @@ Future changes will appear here.
211195

212196
- v1.5.3 ([#437](https://github.com/autonomys/auto-sdk/pull/437)) [@clostao](https://github.com/clostao)
213197

214-
215198
## [1.5.3] - 2025-07-01
216199

217200
### Features
@@ -232,7 +215,6 @@ Future changes will appear here.
232215

233216
- Chore v1.5.2 ([#431](https://github.com/autonomys/auto-sdk/pull/431)) [@clostao](https://github.com/clostao)
234217

235-
236218
## [1.5.2] - 2025-06-24
237219

238220
### Features
@@ -243,7 +225,6 @@ Future changes will appear here.
243225

244226
- downloads should be perfomed in raw mode ([#430](https://github.com/autonomys/auto-sdk/pull/430)) [@clostao](https://github.com/clostao)
245227

246-
247228
## [1.5.1] - 2025-06-19
248229

249230
### Features
@@ -254,7 +235,6 @@ Future changes will appear here.
254235

255236
- bump to v1.5.0 ([#426](https://github.com/autonomys/auto-sdk/pull/426)) [@clostao](https://github.com/clostao)
256237

257-
258238
## [1.5.0] - 2025-06-13
259239

260240
### Features
@@ -271,7 +251,6 @@ Future changes will appear here.
271251
- remove Marc-Aurele from codeowners file ([#422](https://github.com/autonomys/auto-sdk/pull/422)) [@marc-aurele-besner](https://github.com/marc-aurele-besner)
272252
- v1.4.35 ([#421](https://github.com/autonomys/auto-sdk/pull/421)) [@clostao](https://github.com/clostao)
273253

274-
275254
## [1.4.35] - 2025-05-29
276255

277256
### Features
@@ -282,7 +261,6 @@ Future changes will appear here.
282261

283262
- bump to v1.4.34 ([#420](https://github.com/autonomys/auto-sdk/pull/420)) [@clostao](https://github.com/clostao)
284263

285-
286264
## [1.4.34] - 2025-05-29
287265

288266
### Features
@@ -293,7 +271,6 @@ Future changes will appear here.
293271

294272
- bump version to v1.4.33 ([#418](https://github.com/autonomys/auto-sdk/pull/418)) [@clostao](https://github.com/clostao)
295273

296-
297274
## [1.4.33] - 2025-05-28
298275

299276
### Bug Fixes
@@ -304,7 +281,6 @@ Future changes will appear here.
304281

305282
- v1.4.32 ([#417](https://github.com/autonomys/auto-sdk/pull/417)) [@clostao](https://github.com/clostao)
306283

307-
308284
## [1.4.32] - 2025-05-28
309285

310286
### Features
@@ -419,7 +395,6 @@ Future changes will appear here.
419395

420396
- Update dependency cache-manager to ^6.4.2 ([#365](https://github.com/autonomys/auto-sdk/pull/365)) [@renovate[bot]](https://github.com/apps/renovate)
421397

422-
423398
## [1.4.31] - 2025-05-14
424399

425400
### Features

scripts/generate-pr-changelog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,9 @@ function rebuildChangelog(sections, header) {
390390

391391
let content = header
392392
for (const section of sortedSections) {
393-
content += section.content + '\n\n'
393+
// Normalize section spacing to avoid extra blank lines between sections
394+
const normalizedSection = (section.content || '').replace(/\s+$/g, '')
395+
content += normalizedSection + '\n\n'
394396
}
395397

396398
return content.trim()

0 commit comments

Comments
 (0)