Interface GitSyncService
- All Known Implementing Classes:
GitSyncServiceImpl
public interface GitSyncService
Orchestrates sync cycles: pull from Git, parse manifest, import artifacts.
Triggered either by a webhook (push) or a Quartz poll job.
-
Method Summary
Modifier and TypeMethodDescriptionsync()Syncs all enabled repositories.Syncs a specific repository (e.g. triggered by a webhook).syncRepoForce(String repoFullName) Syncs a specific repository, re-importing even if the commit hasn't changed.
-
Method Details
-
sync
GitImportResult sync()Syncs all enabled repositories.- Returns:
- aggregated import result, or null if nothing to sync
-
syncRepo
Syncs a specific repository (e.g. triggered by a webhook).- Parameters:
repoFullName- the full name of the repo (owner/name)- Returns:
- the import result, or null if not found or up-to-date
-
syncRepoForce
Syncs a specific repository, re-importing even if the commit hasn't changed.- Parameters:
repoFullName- the full name of the repo (owner/name)- Returns:
- the import result, or null if not found
-