Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1188 commits
Select commit Hold shift + click to select a range
d829ce7
ci: bump frontend version to v3.1.39
gh-action-bump-version Jan 27, 2026
c18537d
[bmd-multiview16] added docs and UI tweaks
geoffhouse Jan 27, 2026
1d1826a
update readmes
geoffhouse Jan 27, 2026
1940b64
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 27, 2026
38c2a41
ci: update module changelogs and bump versions
github-actions[bot] Jan 27, 2026
8af40a1
ci: bump backend version to v3.1.40
gh-action-bump-version Jan 27, 2026
f7804a0
ci: bump frontend version to v3.1.40
gh-action-bump-version Jan 27, 2026
7fa07dc
downgrade all module critical alerts to error
geoffhouse Jan 27, 2026
95b817f
add checkconfig core service
geoffhouse Jan 27, 2026
bb61059
fix broken workers when no panel config
geoffhouse Jan 27, 2026
a99f5a9
fix order of status items on home screen
geoffhouse Jan 27, 2026
a197707
[cisco-c1300] add checkconfig to status checks
geoffhouse Jan 27, 2026
4042463
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 27, 2026
a6ff114
ci: update module changelogs and bump versions
github-actions[bot] Jan 27, 2026
2d2dabc
ci: bump backend version to v3.1.41
gh-action-bump-version Jan 27, 2026
0e50ecf
ci: bump frontend version to v3.1.41
gh-action-bump-version Jan 27, 2026
6fb6324
[appear-x] add checkconfig to status checks
geoffhouse Jan 27, 2026
d07d068
[bmd-multiview16] add checkconfig to status checks
geoffhouse Jan 27, 2026
9e8bb33
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 27, 2026
3e7bb56
ci: update module changelogs and bump versions
github-actions[bot] Jan 27, 2026
de5fbfb
ci: bump backend version to v3.1.42
gh-action-bump-version Jan 27, 2026
d4da961
ci: bump frontend version to v3.1.42
gh-action-bump-version Jan 27, 2026
b565c8e
update core utils
geoffhouse Jan 27, 2026
928f730
[cisco-c1300] update pending status on config change
geoffhouse Jan 27, 2026
f9505cf
[cisco-c1300] combine workers to save memory
geoffhouse Jan 27, 2026
bc405a1
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 27, 2026
a7f9a15
ci: update module changelogs and bump versions
github-actions[bot] Jan 27, 2026
1a102a3
ci: bump backend version to v3.1.43
gh-action-bump-version Jan 27, 2026
a2cc638
ci: bump frontend version to v3.1.43
gh-action-bump-version Jan 27, 2026
3d2feb8
add TODO files
geoffhouse Jan 28, 2026
63b11d6
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
4db088b
ci: bump backend version to v3.1.44
gh-action-bump-version Jan 28, 2026
0311a60
ci: bump frontend version to v3.1.44
gh-action-bump-version Jan 28, 2026
07a5185
add entries to changelog
geoffhouse Jan 28, 2026
bcc3cd6
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
0fbffee
ci: bump backend version to v3.1.45
gh-action-bump-version Jan 28, 2026
21828fa
ci: bump frontend version to v3.1.45
gh-action-bump-version Jan 28, 2026
629aaca
update TODOs
geoffhouse Jan 28, 2026
79e25d4
migrate from react-json-editor-ajrm to monaco editor
geoffhouse Jan 28, 2026
5269223
add ability to change canceltext in confirmdialog
geoffhouse Jan 28, 2026
9319094
add sx props to bugform
geoffhouse Jan 28, 2026
a25876d
add ability to revert to previous id in config form
geoffhouse Jan 28, 2026
2768f92
fix button nesting warning in UI
geoffhouse Jan 28, 2026
fab7b15
[bmd-videohub] add documentation
geoffhouse Jan 28, 2026
ad211b7
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
a9aa188
ci: update module changelogs and bump versions
github-actions[bot] Jan 28, 2026
35608b7
ci: bump backend version to v3.1.46
gh-action-bump-version Jan 28, 2026
0ff66b8
ci: bump frontend version to v3.1.46
gh-action-bump-version Jan 28, 2026
1687880
[bmd-videohub] add default status check
geoffhouse Jan 28, 2026
2687a41
ci: update module changelogs and bump versions
github-actions[bot] Jan 28, 2026
560d51c
ci: bump backend version to v3.1.47
gh-action-bump-version Jan 28, 2026
75a1118
fix title typo
geoffhouse Jan 28, 2026
c6f0ee8
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
e66a2ae
ci: bump backend version to v3.1.48
gh-action-bump-version Jan 28, 2026
6e0eebb
ci: bump frontend version to v3.1.47
gh-action-bump-version Jan 28, 2026
3967e04
fix changelog
geoffhouse Jan 28, 2026
2bf0039
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
259b494
ci: bump backend version to v3.1.49
gh-action-bump-version Jan 28, 2026
fe921f8
ci: bump frontend version to v3.1.48
gh-action-bump-version Jan 28, 2026
d846330
tidy up
geoffhouse Jan 28, 2026
b6d57a8
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
423a4f2
ci: bump backend version to v3.1.50
gh-action-bump-version Jan 28, 2026
7d5740d
ci: bump frontend version to v3.1.49
gh-action-bump-version Jan 28, 2026
691070f
update docs theme
geoffhouse Jan 28, 2026
092f360
ci: bump backend version to v3.1.51
gh-action-bump-version Jan 28, 2026
baa004f
ci: bump frontend version to v3.1.50
gh-action-bump-version Jan 28, 2026
9323104
add default style to bugalert
geoffhouse Jan 28, 2026
502b11e
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
79a3cc5
ci: bump backend version to v3.1.52
gh-action-bump-version Jan 28, 2026
91d1129
ci: bump frontend version to v3.1.51
gh-action-bump-version Jan 28, 2026
f96195d
fix ansi colors in logger
geoffhouse Jan 28, 2026
b6c5d07
move config folder to src
geoffhouse Jan 28, 2026
40c0063
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
e8533ed
ci: bump backend version to v3.1.53
gh-action-bump-version Jan 28, 2026
89a4a78
ci: bump frontend version to v3.1.52
gh-action-bump-version Jan 28, 2026
2bd4d11
[bmd-videohub] fix bug in getdestinations
geoffhouse Jan 28, 2026
f7525fe
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
890f66b
ci: update module changelogs and bump versions
github-actions[bot] Jan 28, 2026
5a4fc19
ci: bump backend version to v3.1.54
gh-action-bump-version Jan 28, 2026
01c1744
ci: bump frontend version to v3.1.53
gh-action-bump-version Jan 28, 2026
031fd28
fix panel row state when building
geoffhouse Jan 28, 2026
8a62e9a
improve panel build updates and add timing
geoffhouse Jan 28, 2026
436d944
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
8a79613
ci: bump backend version to v3.1.55
gh-action-bump-version Jan 28, 2026
3b9fc7a
ci: bump frontend version to v3.1.54
gh-action-bump-version Jan 28, 2026
9607759
improve build / upgrade process
geoffhouse Jan 28, 2026
85137c2
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
cce87c1
ci: bump backend version to v3.1.56
gh-action-bump-version Jan 28, 2026
756ab48
ci: bump frontend version to v3.1.55
gh-action-bump-version Jan 28, 2026
72c8b75
update docs
geoffhouse Jan 28, 2026
c1d3eb1
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 28, 2026
90ae7e7
[cisco-c1300] fix system/password timeouts
geoffhouse Jan 29, 2026
04d0c13
[cisco-c1300] add readme
geoffhouse Jan 29, 2026
c3bb04a
[cisco-c1300] overhaul error handling
geoffhouse Jan 29, 2026
f08cb3d
minor updates
geoffhouse Jan 29, 2026
60a5c02
ci: update module changelogs and bump versions
github-actions[bot] Jan 29, 2026
47b04ff
ci: bump backend version to v3.1.57
gh-action-bump-version Jan 29, 2026
eb06695
ci: bump frontend version to v3.1.56
gh-action-bump-version Jan 29, 2026
2e610be
fix error status in home tile
geoffhouse Jan 29, 2026
2414da2
[cisco-c1300] add panel status display
geoffhouse Jan 29, 2026
0e7ae05
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Jan 29, 2026
c5a2351
ci: update module changelogs and bump versions
github-actions[bot] Jan 29, 2026
7065ae6
ci: bump backend version to v3.1.58
gh-action-bump-version Jan 29, 2026
c3e2d29
ci: bump frontend version to v3.1.57
gh-action-bump-version Jan 29, 2026
3b53571
[cisco-c1300] update workers
geoffhouse Jan 29, 2026
816724e
[cisco-c1300] improve reliability of snmp
geoffhouse Jan 29, 2026
1a36d20
ci: update module changelogs and bump versions
github-actions[bot] Jan 29, 2026
5d55f6b
ci: bump backend version to v3.1.59
gh-action-bump-version Jan 29, 2026
1df21c7
ci: bump frontend version to v3.1.58
gh-action-bump-version Jan 29, 2026
621b886
update bug jokes
geoffhouse Feb 2, 2026
417eb77
throw error with snmp-await
geoffhouse Feb 2, 2026
13a65e4
update TODOs
geoffhouse Feb 2, 2026
faee8f1
[arista-switch] refactor workers to reduce memory
geoffhouse Feb 2, 2026
4aa6f03
ci: update module changelogs and bump versions
github-actions[bot] Feb 2, 2026
05617c0
ci: bump backend version to v3.1.60
gh-action-bump-version Feb 2, 2026
ca694fa
ci: bump frontend version to v3.1.59
gh-action-bump-version Feb 2, 2026
cb5b4bf
update architecture docs
geoffhouse Feb 3, 2026
23c8e98
add DOCS_BASEURL to constants for docs
geoffhouse Feb 3, 2026
eb3bc61
fix border in panelstatus
geoffhouse Feb 3, 2026
64f838d
update DOCS_BASEURL
geoffhouse Feb 3, 2026
148c472
update arista-switch docs
geoffhouse Feb 3, 2026
213c670
ci: bump backend version to v3.1.61
gh-action-bump-version Feb 3, 2026
d5ebc60
ci: bump frontend version to v3.1.60
gh-action-bump-version Feb 3, 2026
77b9cfb
[arista-switch] add temperature monitoring and alerts
geoffhouse Feb 3, 2026
83768da
[arista-switch] add visiblity and control of POE status
geoffhouse Feb 3, 2026
e84961c
[arista-switch] add api test docs
geoffhouse Feb 3, 2026
17fa0c0
[arista-switch] improve error handling in utils
geoffhouse Feb 3, 2026
158ef50
[arista-switch] improve api error handling
geoffhouse Feb 3, 2026
7812227
[arista-switch] set save pending flag on changes
geoffhouse Feb 3, 2026
cc3d0f7
[arista-switch] add panel status
geoffhouse Feb 3, 2026
4373b97
[arista-switch] show poe info in details tab
geoffhouse Feb 3, 2026
2f08316
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 3, 2026
bfb744e
ci: update module changelogs and bump versions
github-actions[bot] Feb 3, 2026
7fea11e
ci: bump backend version to v3.1.62
gh-action-bump-version Feb 3, 2026
57d8199
ci: bump frontend version to v3.1.61
gh-action-bump-version Feb 3, 2026
979f356
update modulebuilder with new patterns
geoffhouse Feb 4, 2026
9cbbf80
[bmd-multiiew] update routes to use asynchandler
geoffhouse Feb 4, 2026
2f55290
[bmd-multiview16] update code with new patterns
geoffhouse Feb 4, 2026
595cda9
[bmd-multiview16] add default status response
geoffhouse Feb 4, 2026
c200e1b
[bmd-multiview16] add api JSON error handler
geoffhouse Feb 4, 2026
ff5fe07
ci: update module changelogs and bump versions
github-actions[bot] Feb 4, 2026
e33aa25
ci: bump backend version to v3.1.63
gh-action-bump-version Feb 4, 2026
0b37b87
ci: bump frontend version to v3.1.62
gh-action-bump-version Feb 4, 2026
9a97c7a
[bmd-videohub] improve api JSON error handling
geoffhouse Feb 4, 2026
6c8eecd
[bmd-videohub] refactor service code to use new error handling
geoffhouse Feb 4, 2026
ba42855
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 4, 2026
f9d01a1
ci: update module changelogs and bump versions
github-actions[bot] Feb 4, 2026
495f2d7
ci: bump backend version to v3.1.64
gh-action-bump-version Feb 4, 2026
204cb98
ci: bump frontend version to v3.1.63
gh-action-bump-version Feb 4, 2026
73a8bbe
update TODOs
geoffhouse Feb 4, 2026
f7de786
[cisco-c1300] improve error handling in workers
geoffhouse Feb 4, 2026
2024cfe
[cisco-cbs] improve api route error handling
geoffhouse Feb 4, 2026
9713866
[cisco-cbs] improve performance of workers
geoffhouse Feb 4, 2026
9664e85
[cisco-c1300] use bulkwrite to improve worker db writes
geoffhouse Feb 4, 2026
a32a61a
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 4, 2026
6d5e038
ci: update module changelogs and bump versions
github-actions[bot] Feb 4, 2026
23bd130
ci: bump backend version to v3.1.65
gh-action-bump-version Feb 4, 2026
4ae8c44
ci: bump frontend version to v3.1.64
gh-action-bump-version Feb 4, 2026
95f4274
update TODOs
geoffhouse Feb 4, 2026
8e8cb29
[cisco-cbs] use mongo bulkwrite to improve performance
geoffhouse Feb 4, 2026
fd21cde
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 4, 2026
052e3db
ci: update module changelogs and bump versions
github-actions[bot] Feb 4, 2026
99edf90
ci: bump backend version to v3.1.66
gh-action-bump-version Feb 4, 2026
18f9004
ci: bump frontend version to v3.1.65
gh-action-bump-version Feb 4, 2026
1e9bd70
[cisco-cbs] add README
geoffhouse Feb 4, 2026
67c018b
[cisco-cbs] add default status check
geoffhouse Feb 4, 2026
471d8ee
[cisco-cbs] refactor services with try/catch/throw
geoffhouse Feb 4, 2026
a892bdd
[cisco-cbs] improve logging in status handlers
geoffhouse Feb 4, 2026
58494b4
[cisco-cbs] set pending flag on any change to update UI
geoffhouse Feb 4, 2026
0904e4e
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 4, 2026
6dd2b9a
ci: update module changelogs and bump versions
github-actions[bot] Feb 4, 2026
595c7b5
ci: bump backend version to v3.1.67
gh-action-bump-version Feb 4, 2026
288ce7d
ci: bump frontend version to v3.1.66
gh-action-bump-version Feb 4, 2026
63cbf43
[cisco-cbs] fix status check timeouts
geoffhouse Feb 5, 2026
4462c7d
fix broken hooks warning
geoffhouse Feb 5, 2026
2dd4d77
fix dynamic icons
geoffhouse Feb 5, 2026
fe85726
fix edit icon dialog with new MUI / MDI icons
geoffhouse Feb 5, 2026
1350138
remove all mentions of error.trace
geoffhouse Feb 5, 2026
b7e8a3b
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 5, 2026
0bb2a28
ci: update module changelogs and bump versions
github-actions[bot] Feb 5, 2026
2cefba9
ci: bump backend version to v3.1.68
gh-action-bump-version Feb 5, 2026
b8410d2
ci: bump frontend version to v3.1.67
gh-action-bump-version Feb 5, 2026
29c5079
fix storybook build with mui icons
geoffhouse Feb 5, 2026
8e4fee1
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 5, 2026
e9f9640
ci: bump backend version to v3.1.69
gh-action-bump-version Feb 5, 2026
ce9a0e5
ci: bump frontend version to v3.1.68
gh-action-bump-version Feb 5, 2026
f675685
[mikrotik-sdwan] improve logging in workers
geoffhouse Feb 5, 2026
fbc5765
[mikrotik-sdwan] improve reliablilty of workers
geoffhouse Feb 5, 2026
c0366e7
improve workers exiting using process.exit
geoffhouse Feb 6, 2026
7ecb3ce
enforce lower case in usernames and email address
geoffhouse Feb 6, 2026
69e75f1
replace error.trace with error.stack
geoffhouse Feb 6, 2026
67b33ee
update error logging
geoffhouse Feb 6, 2026
971b2eb
[arista-switch] improve service logging
geoffhouse Feb 6, 2026
77c6fb1
[bmd-videohub16] improve service logging
geoffhouse Feb 6, 2026
dbb7976
[cisco-c1300] improve service logging
geoffhouse Feb 6, 2026
c70cf23
[cisco-cbs] improve service logging
geoffhouse Feb 6, 2026
964d976
fix client modules in vite
geoffhouse Feb 9, 2026
e376a73
use winston for logging
geoffhouse Feb 9, 2026
2adf206
fix buildstatus on error
geoffhouse Feb 9, 2026
9a3830d
[mikrotik-sdwan] update logging in services
geoffhouse Feb 9, 2026
00b7b25
use asynchandler for routes
geoffhouse Feb 9, 2026
81592b3
fix expanded menu in nav
geoffhouse Feb 9, 2026
809e7c0
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 9, 2026
190c8ce
ci: update module changelogs and bump versions
github-actions[bot] Feb 9, 2026
d6664d4
ci: bump backend version to v3.1.70
gh-action-bump-version Feb 9, 2026
7835f56
ci: bump frontend version to v3.1.69
gh-action-bump-version Feb 9, 2026
a1adfff
[app] add update script and changelog generation
geoffhouse Feb 9, 2026
85dc7e6
ci: update app changelog and bump versions
github-actions[bot] Feb 9, 2026
4d7430f
update changelog and docs
geoffhouse Feb 9, 2026
f91ede9
fix redux warning about selector
geoffhouse Feb 9, 2026
3a54d56
fix hover border on BugConfigFormSwitch
geoffhouse Feb 9, 2026
567d6c9
[app] allow users to be enabled when created
geoffhouse Feb 9, 2026
c4fa89b
[app] add 'view logs' menu item to panel list
geoffhouse Feb 9, 2026
c402635
ci: update app changelog and bump versions
github-actions[bot] Feb 9, 2026
8176f08
[app] improve UI when panel module is already built
geoffhouse Feb 9, 2026
a3248c3
fix api errors
geoffhouse Feb 9, 2026
07a3eac
[app] add 'view panels' button to home screen
geoffhouse Feb 9, 2026
beb602b
fix build modules
geoffhouse Feb 9, 2026
73e1f9e
[cisco-cbs] service/util updates
geoffhouse Feb 9, 2026
d8363f0
Merge branches 'main' and 'main' of https://github.com/bbc/bug
geoffhouse Feb 9, 2026
509e4cb
ci: update module changelogs and bump versions
github-actions[bot] Feb 9, 2026
d6cb9d5
ci: update app changelog and bump versions
github-actions[bot] Feb 9, 2026
fd554f6
[cisco-cbs] fix status timeouts
geoffhouse Feb 9, 2026
6226bb2
[mikrotik-sdwan] add default route view
geoffhouse Feb 9, 2026
55cfd13
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 9, 2026
002466c
ci: update module changelogs and bump versions
github-actions[bot] Feb 9, 2026
df3b620
[app] fix auto-reconnect of log stream
geoffhouse Feb 10, 2026
dfd72e2
[mikrotik-sdwan] improve default status
geoffhouse Feb 10, 2026
f00ee76
[mikrotik-sdwan] fix route/group sorting
geoffhouse Feb 10, 2026
de14417
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 10, 2026
1a6e9e6
ci: update module changelogs and bump versions
github-actions[bot] Feb 10, 2026
85c0e13
ci: update app changelog and bump versions
github-actions[bot] Feb 10, 2026
b1d9562
remove densitron-emu3 module
geoffhouse Feb 10, 2026
253ab06
remove fscom-s3410 module
geoffhouse Feb 10, 2026
539b190
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 10, 2026
ceff1e9
[mikrotik-sdwan] fix route comments/labels
geoffhouse Feb 10, 2026
b9613c3
ci: update module changelogs and bump versions
github-actions[bot] Feb 10, 2026
667e2c4
add worker-taskmanager for nested worker tasks
geoffhouse Feb 11, 2026
b1224e8
[app] set workermanager default retry interval to 10s
geoffhouse Feb 11, 2026
5636151
[mikrotik-sdwan] use new task-based workers
geoffhouse Feb 11, 2026
e319084
[app] revert to using 'critical' for stale data status items
geoffhouse Feb 11, 2026
c840e53
[mikrotik-sdwan] improve workers when device unavailable
geoffhouse Feb 11, 2026
e47c367
[app] add new worker task manager
geoffhouse Feb 13, 2026
5110967
[mikrotik-sdwan] add ping/fetch tests and use worker tasks
geoffhouse Feb 13, 2026
674c257
Merge branch 'main' of https://github.com/bbc/bug
geoffhouse Feb 13, 2026
8186bbe
ci: update module changelogs and bump versions
github-actions[bot] Feb 13, 2026
8c5a322
ci: update app changelog and bump versions
github-actions[bot] Feb 13, 2026
178fc11
ci: update module changelogs and bump versions
github-actions[bot] Sep 10, 2026
a519145
Merge branch 'main' of https://github.com/bbc/bug
dgbbc Sep 16, 2026
597ca9d
Bump actions/configure-pages from 5 to 6
dependabot[bot] Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 0 additions & 24 deletions .dockerignore

This file was deleted.

63 changes: 0 additions & 63 deletions .github/actions/slack-run-finish/action.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/actions/slack-run-start/action.yml

This file was deleted.

50 changes: 2 additions & 48 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,7 @@
version: 2

updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"

open-pull-requests-limit: 5

ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"

groups:
dependencies:
patterns:
- "*"

- package-ecosystem: "npm"
directory: "/src/client"
schedule:
interval: "weekly"

open-pull-requests-limit: 5

ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"

groups:
dependencies:
patterns:
- "*"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

open-pull-requests-limit: 5

ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"

groups:
dependencies:
patterns:
- "*"
interval: "daily"
61 changes: 10 additions & 51 deletions .github/scripts/updateApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,55 +51,24 @@ function compareVersions(a, b) {
return 0;
}

function hashExistsInHistory(hash) {
try {
execSync(`git cat-file -e ${hash}^{commit}`, { stdio: "ignore" });
return true;
} catch {
return false;
}
}

// read existing changelog
// read last processed commit in changelog file
let existingContent = "";
let lastCommitHash = null;
let lastCommitDate = null;

if (fs.existsSync(CHANGELOG_FILE)) {
existingContent = fs.readFileSync(CHANGELOG_FILE, "utf-8");

// extract full hash from the first commit URL in the most recent version entry
const hashMatch = existingContent.match(
/### version [\d.]+[\s\S]*?\/commit\/([0-9a-f]{40})/
const match = existingContent.match(
/\[([0-9a-f]{7})\]\(https?:\/\/github\.com\/[^)]+\/commit\/[0-9a-f]{7,40}\)/
);
if (hashMatch) lastCommitHash = hashMatch[1];

// extract the most recent date from the changelog as a fallback
const dateMatch = existingContent.match(
/### version [\d.]+[\s\S]*?- (\d{4}-\d{2}-\d{2}):/
);
if (dateMatch) lastCommitDate = dateMatch[1];
}

// build git log range argument - with fallback if hash no longer exists
let rangeArg = "";
if (lastCommitHash) {
if (hashExistsInHistory(lastCommitHash)) {
rangeArg = `${lastCommitHash}..HEAD`;
console.log(` - resuming from commit ${lastCommitHash.slice(0, 7)}`);
} else if (lastCommitDate) {
rangeArg = `--after="${lastCommitDate}"`;
console.log(` - hash ${lastCommitHash.slice(0, 7)} not found (squashed?), falling back to date ${lastCommitDate}`);
} else {
console.log(` - hash not found and no date fallback, processing all commits`);
}
if (match) lastCommitHash = match[1];
}

// fetch commits (exclude modules)
let gitLog = "";
try {
gitLog = execSync(
`git log --pretty=format:"%H|%ad|%s" --date=short ${rangeArg} -- . ":(exclude)src/modules"`,
`git log --pretty=format:"%H|%ad|%s" --date=short ${lastCommitHash ? lastCommitHash + "..HEAD" : ""
} -- . ":(exclude)src/modules"`,
{ encoding: "utf-8" }
);
} catch {
Expand All @@ -112,11 +81,6 @@ if (!gitLog.trim()) {
process.exit(0);
}

// collect existing commit descriptions to deduplicate against
const existingDescriptions = new Set(
[...existingContent.matchAll(/^- \d{4}-\d{2}-\d{2}: (.+?) \(\[/gm)].map(m => m[1])
);

// parse [app] commits
const commits = gitLog
.split("\n")
Expand All @@ -132,14 +96,7 @@ const commits = gitLog
breaking: Boolean(match[1])
};
})
.filter(Boolean)
.filter(c => {
if (existingDescriptions.has(c.description)) {
console.log(` - skipping duplicate: ${c.description}`);
return false;
}
return true;
});
.filter(Boolean);

if (!commits.length) {
console.log(" - no [app] commits to process");
Expand Down Expand Up @@ -212,10 +169,12 @@ existingContent = existingContent.replace(

fs.writeFileSync(CHANGELOG_FILE, existingContent);

// done
console.log(" - updated app CHANGELOG.md");

// create and push Git tag
try {
// check if tag already exists
const tags = execSync(`git tag`, { encoding: "utf-8" }).split("\n");
const tagName = `v${newVersion}`;
if (tags.includes(tagName)) {
Expand All @@ -229,4 +188,4 @@ try {
console.error(" - failed to create/push git tag:", err.message);
}

console.log(`app release ${newVersion} complete`);
console.log(`app release ${newVersion} complete`);
Loading