craft-hub / TeamGitSyncService
Class: TeamGitSyncService
Defined in: packages/craft-hub/src/team-git-sync.ts:46
Synchronize each Team's portable workspaces through its selected local Git checkout.
Constructors
Constructor
new TeamGitSyncService(
dataDir,ownerScopes,workspaces):TeamGitSyncService
Defined in: packages/craft-hub/src/team-git-sync.ts:49
Parameters
dataDir
string
ownerScopes
workspaces
Returns
TeamGitSyncService
Methods
configure()
configure(
ownerScopeId,input):Promise<TeamGitSyncStatus>
Defined in: packages/craft-hub/src/team-git-sync.ts:58
Select a Team Git target without treating the repository as the Team identity.
Parameters
ownerScopeId
string
input
directory?
string
repositoryPath
string
Returns
Promise<TeamGitSyncStatus>
removeConfiguration()
removeConfiguration(
ownerScopeId):Promise<TeamGitSyncConfigurationReceipt>
Defined in: packages/craft-hub/src/team-git-sync.ts:133
Detach a Team from its local checkout without deleting the shared snapshot.
Parameters
ownerScopeId
string
Returns
Promise<TeamGitSyncConfigurationReceipt>
restoreConfiguration()
restoreConfiguration(
ownerScopeId,receipt):Promise<void>
Defined in: packages/craft-hub/src/team-git-sync.ts:146
Restore a detached Team configuration when lifecycle cleanup rolls back.
Parameters
ownerScopeId
string
receipt
TeamGitSyncConfigurationReceipt
Returns
Promise<void>
status()
status(
ownerScopeId):Promise<TeamGitSyncStatus>
Defined in: packages/craft-hub/src/team-git-sync.ts:79
Inspect one Team's semantic divergence without running network Git operations.
Parameters
ownerScopeId
string
Returns
Promise<TeamGitSyncStatus>
synchronize()
synchronize(
ownerScopeId,resolution?):Promise<TeamGitSyncStatus>
Defined in: packages/craft-hub/src/team-git-sync.ts:101
Synchronize one Team automatically or resolve an explicit divergence.
Parameters
ownerScopeId
string
resolution?
PersonalGitSyncResolution = 'auto'
Returns
Promise<TeamGitSyncStatus>