Skip to content

Commit a223392

Browse files
CI: Update Changelog script to skip listing changelog edit commits.
1 parent 501e387 commit a223392

File tree

3 files changed

+3
-45
lines changed

3 files changed

+3
-45
lines changed

.github/tools/gitchanges.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def getCommitsBetween( tagA, tagB = "HEAD", clone=None):
7272
print(f"Cannot access repo: {e}")
7373
return "\n - Unable to find commits"
7474
commits = os.popen(f'git log --format="%s (by %an)" --no-merges --reverse {tagA}..{tagB}').read().strip().splitlines()
75+
# Filter out changelog commits created by CI (.github/workflows/update-changelog.yml)
76+
commits = [c for c in commits if not c.startswith("Updated the Changelog")]
7577
if clone:
7678
os.chdir(original_path)
7779
shutil.rmtree(clone_path)

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
python3 .github/tools/gitchanges.py --input Changelog.md
3030
3131
- name: Commit the new Changelog
32+
# If the commit message is changed, also update the gitchanges.py script to match
3233
run: |
3334
git config --global user.name 'Github Actions'
3435
git config --global user.email '[email protected]'

Changelog.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ The current tag uses the following library versions:
1010

1111
## [v0.3.3](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.3.2...v0.3.3)
1212

13-
- Updated the Changelog (v0.3.2) (by Github Actions)
1413
- Add additional validation checks around SoundEmjiSynthesizer, and guarantee mutual exclusion when IRQ triggers (by Joe Finney)
1514
- Bump to head of codal-core (by Joe Finney)
1615

@@ -20,7 +19,6 @@ The current tag uses the following library versions:
2019

2120
## [v0.3.2](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.3.1...v0.3.2)
2221

23-
- Updated the Changelog (v0.3.1) (by Github Actions)
2422
- CI: Update Windows runner from deprecated 2019 to oldest available 2022. (by Carlos Pereira Atencio)
2523
- Make writes to mManagedBuffer safe (by Joe Finney)
2624
- Snapshot v0.3.2 (by Carlos Pereira Atencio)
@@ -109,13 +107,11 @@ The current tag uses the following library versions:
109107

110108
## [v0.2.71](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.70...v0.2.71)
111109

112-
- Updated the Changelog (v0.2.70) (by Github Actions)
113110
- Fix first use of io.logo.isTouched() (#480) (by Martin Williams)
114111
- Save a bit of memory from MicroBitIO. (#466) (by Carlos Pereira Atencio)
115112

116113
## [v0.2.70](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.69...v0.2.70)
117114

118-
- Updated the Changelog (v0.2.69) (by Github Actions)
119115
- CI: Update mac runner version to macOS 13, as 12 is deprecated. (by Carlos Pereira Atencio)
120116
- Fix Pi value typo in SoundSynthesizerEffects. (#456) (by Carlos Pereira Atencio)
121117
- CI: Reduce the min GCC version used to match what MakeCode (PXT) uses. (#461) (by Carlos Pereira Atencio)
@@ -140,7 +136,6 @@ The current tag uses the following library versions:
140136

141137
## [v0.2.69](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.67...v0.2.69)
142138

143-
- Updated the Changelog (by Carlos Pereira Atencio)
144139
- Allow log full FUL to be written to last byte (#438) (by Martin Williams)
145140
- Temporarily set CODAL_VERSION back to "unknown". (#445) (by Carlos Pereira Atencio)
146141
- Snapshot v0.2.68 (by Carlos Pereira Atencio)
@@ -155,7 +150,6 @@ The current tag uses the following library versions:
155150

156151
## [v0.2.67](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.66...v0.2.67)
157152

158-
- Updated the Changelog (by Github Actions)
159153
- Update Changelog.md (by Dr John Vidler)
160154
- CI: Restore building MakeCode with Docker. (#407) (by Carlos Pereira Atencio)
161155
- CI: Update versions of actions to remove warnings about node 16. (#408) (by Carlos Pereira Atencio)
@@ -187,7 +181,6 @@ The current tag uses the following library versions:
187181

188182
## [v0.2.66](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.65...v0.2.66)
189183

190-
- Updated the Changelog (by Github Actions)
191184
- Update Changelog.md (by Dr John Vidler)
192185
- Snapshot v0.2.66 (by Dr John Vidler)
193186

@@ -197,7 +190,6 @@ The current tag uses the following library versions:
197190

198191
## [v0.2.65](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.63...v0.2.65)
199192

200-
- Updated the Changelog (by Github Actions)
201193
- Corrected Changelog.md after my tag snarfu (by Dr John Vidler)
202194
- Refined the changelog script to only update the head of the log under normal cases (by Dr John Vidler)
203195
- Set MICROBIT_RADIO_MAX_PACKET_SIZE as a configurable value. (#387) (by Carlos Pereira Atencio)
@@ -229,9 +221,6 @@ Dr John Vidler (9):
229221
- Reverted the power saving for the LED Matrix to avoid strange issues with Pins.
230222
- Snapshot v0.2.63
231223

232-
Github Actions (3):
233-
- Updated the Changelog
234-
235224
## [v0.2.62](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.61...v0.2.62)
236225

237226
Carlos Pereira Atencio (1):
@@ -244,11 +233,6 @@ Dr John Vidler (5):
244233
- Merge branch 'master' of ssh://github.com/lancaster-university/codal-microbit-v2
245234
- Snapshot v0.2.62
246235

247-
Github Actions (3):
248-
- Updated the Changelog
249-
- Updated the Changelog
250-
- Updated the Changelog
251-
252236
## [v0.2.61](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.60...v0.2.61)
253237

254238
Dr John Vidler (4):
@@ -257,10 +241,6 @@ Dr John Vidler (4):
257241
- Snapshot v0.2.60-master.1
258242
- Snapshot v0.2.61
259243

260-
Github Actions (2):
261-
- Updated the Changelog
262-
- Updated the Changelog
263-
264244
Martin Williams (1):
265245
- Shorter reset to Bluetooth mode animation (#368)
266246

@@ -276,9 +256,6 @@ Carlos Pereira Atencio (5):
276256
Dr John Vidler (1):
277257
- Snapshot v0.2.60
278258

279-
Github Actions (1):
280-
- Updated the Changelog
281-
282259
## [v0.2.59](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.58...v0.2.59)
283260

284261
Carlos Pereira Atencio (2):
@@ -288,19 +265,13 @@ Carlos Pereira Atencio (2):
288265
Dr John Vidler (1):
289266
- Added an on-release action to grab library builds
290267

291-
Github Actions (1):
292-
- Updated the Changelog
293-
294268
## [v0.2.58](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.57...v0.2.58)
295269

296270
Carlos Pereira Atencio (3):
297271
- CI: Add option to size diff workflow to configure samples repo commit. (#358)
298272
- CI: Temporarily disable pxt docker build until image becomes available. (#359)
299273
- Snapshot v0.2.58
300274

301-
Github Actions (1):
302-
- Updated the Changelog
303-
304275
Martin Williams (1):
305276
- MicroBitBLEManager - Move MICROBIT_BLE_MAXIMUM_BONDS to MicroBitConfig (#299)
306277

@@ -310,9 +281,6 @@ Dr John Vidler (2):
310281
- Disbled the MICROBIT_BLE_UTILITY_SERVICE_PAIRING configuration by default, enabled on BETA
311282
- Snapshot v0.2.57
312283

313-
Github Actions (1):
314-
- Updated the Changelog
315-
316284
## [v0.2.56](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.55...v0.2.56)
317285

318286
Carlos Pereira Atencio (2):
@@ -332,9 +300,6 @@ Dr John Vidler (11):
332300
- Merge branch 'master' of ssh://github.com/lancaster-university/codal-microbit-v2
333301
- Snapshot v0.2.56
334302

335-
Github Actions (1):
336-
- Updated the Changelog
337-
338303
Martin Williams (2):
339304
- MicroBitUtilityService - replaces PR 178 (#287)
340305
- MicroBitCompassCalibrator avoid using max(int,int) (#290)
@@ -345,9 +310,6 @@ Dr John Vidler (2):
345310
- Added additional workflow status badges
346311
- Snapshot v0.2.55
347312

348-
Github Actions (1):
349-
- Updated the Changelog
350-
351313
Martin Williams (1):
352314
- Fix BLE panic 071 (#334)
353315

@@ -357,9 +319,6 @@ Dr John Vidler (2):
357319
- Update update-changelog.yml
358320
- Snapshot v0.2.54
359321

360-
Github Actions (1):
361-
- Updated the Changelog
362-
363322
## [v0.2.53](https://github.com/lancaster-university/codal-microbit-v2/compare/v0.2.52...v0.2.53)
364323

365324
Carlos Pereira Atencio (1):
@@ -372,10 +331,6 @@ Dr John Vidler (5):
372331
- !!BREAKING CHANGE!! - The old level detector is now removed, in favour of the SPL level detector. Users who need the old one must create their own
373332
- Snapshot v0.2.53
374333

375-
Github Actions (2):
376-
- Updated the Changelog
377-
- Updated the Changelog
378-
379334
Joe Finney (1):
380335
- Improve sound quality of virtual sound pin (#312)
381336

0 commit comments

Comments
 (0)