forked from Hiichamp/kavachBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto-commit.ps1
More file actions
48 lines (42 loc) · 1.94 KB
/
Copy pathauto-commit.ps1
File metadata and controls
48 lines (42 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$commits = @(
@{
files = "client/public/ client/README.md client/src/main.jsx client/src/index.css client/src/App.css client/src/assets/"
message = "chore(client): initialize React frontend foundation and styles"
},
@{
files = "client/src/utils/trackInterpolation.js client/src/utils/zoneGenerator.js client/src/utils/conflictDetector.js"
message = "feat(utils): add core simulation math for haversine interpolation and zone detection"
},
@{
files = "client/src/hooks/"
message = "feat(hooks): implement central useTrainSimulation engine state"
},
@{
files = "client/src/components/MapView.jsx client/src/components/WeatherEffects.jsx"
message = "feat(map): integrate Leaflet maps with dynamic weather and track rendering"
},
@{
files = "client/src/components/Dashboard.jsx client/src/components/TokenPanel.jsx client/src/components/SplashScreen.jsx client/src/components/KanchanjungaOverlay.jsx"
message = "feat(ui): build interactive dashboard, token status, and disaster overlays"
},
@{
files = "server/models/ server/index.js server/routes/ server/sockets/"
message = "feat(server): setup Express backend, MongoDB models, and Socket.io sync"
},
@{
files = "simulation/"
message = "feat(simulation): add backend standalone simulator for continuous loops"
}
)
Write-Host "Starting automated GitHub commits... (1 commit every 5 minutes)"
foreach ($commit in $commits) {
Write-Host "Adding files: $($commit.files)"
Invoke-Expression "git add $($commit.files)"
Write-Host "Committing: $($commit.message)"
git commit -m $commit.message
Write-Host "Pushing to GitHub..."
git push origin main
Write-Host "Commit successful. Waiting 5 minutes for the next commit..."
Start-Sleep -Seconds 300
}
Write-Host "All code has been successfully committed and pushed to GitHub!"