Based on the @Zef version, the last space-lua script (in @Zef’s Git.md) has been modified to include an event-driven git autosync feature.
I tested it for a while, and it currently worked properly as expected: event-driven Library/Git.md
Hope this can help buddy limit the incoming and outgoing traffic on the server side
PS: ❶ Event-triggered Sync is enabled by default, and does not need to be configured in CONFIG. ❷ However, the Periodic Sync is independently of this, and still needs to be configured in CONFIG. ❸ In addition, a (Periodic) Sync will be automatically triggered the moment the plug-in is updated (Ctrl + Shift + p) or the SB is initiating, if the Periodic Sync is properly configured in CONFIG.
config.set {
git = {
autoSync = 60 * 24, -- Periodic Sync is now only used to synchronize once at startup (with a large interval set). This seems more suitable for read-only mode (website viewers only pull once when loading, but it should be noted that each user will pull it once), while the writer only pushes through Trigger Sync.
},
}