mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #238] [MERGED] feat: Add comprehensive auto-sync functionality #284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/238
Author: @michelroegl-brunner
Created: 10/24/2025
Status: ✅ Merged
Merged: 10/24/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feat/auto_sync_lxc📝 Commits (8)
e0bea6cfeat: Add comprehensive auto-sync functionality4d12a51fix: Auto-sync now only downloads truly new scriptsbf5b602fix: Custom cron input and auto-sync reschedulinga6a02a1fix: Auto-sync file detection and script downloader initializationbb4eb29fix: Remove CommonJS require() calls in ES module context82b2012fix: Import Buffer explicitly for ES module compatibility7817ce3feat: Add script categorization to auto-sync notificationscd2b00bfix: Resolve linter errors in autoSyncService.js📊 Changes
14 files changed (+2792 additions, -21 deletions)
View changed files
📝
package-lock.json(+156 -18)📝
package.json(+5 -0)📝
server.js(+11 -0)📝
src/app/_components/GeneralSettingsModal.tsx(+427 -1)📝
src/app/_components/HelpModal.tsx(+98 -2)➕
src/app/api/settings/auto-sync/route.ts(+379 -0)📝
src/server/api/routers/scripts.ts(+102 -0)➕
src/server/lib/autoSyncInit.js(+65 -0)➕
src/server/lib/autoSyncInit.ts(+65 -0)➕
src/server/services/appriseService.js(+123 -0)➕
src/server/services/autoSyncService.js(+542 -0)➕
src/server/services/githubJsonService.js(+276 -0)➕
src/server/services/scriptDownloader.js(+346 -0)📝
src/server/services/scriptDownloader.ts(+197 -0)📄 Description
🚀 Auto-Sync Feature Implementation
This PR introduces a comprehensive auto-sync system that automatically keeps the PVE Scripts Local repository synchronized with the latest scripts from GitHub.
✨ Key Features
🔄 Automatic Synchronization
📥 Script Management
🔔 Notification System
⚙️ Configuration & Control
🏗️ Technical Architecture
New Services:
AutoSyncService: Core scheduling and execution logicGitHubJsonService: Handles JSON file synchronization from GitHubAppriseService: Manages multi-channel notificationsScriptDownloaderService: Handles automatic script downloads and updatesAPI Endpoints:
GET/POST /api/settings/auto-sync: Auto-sync configuration managementConfiguration Options:
🎯 Benefits
🔧 Configuration Example
This feature significantly enhances the automation capabilities of PVE Scripts Local, making it a truly hands-off solution for script management while providing full visibility into the sync process through comprehensive notifications.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.