{#if repo}
{#if !repo.detectionState || repo.detectionState === 'idle'} {#if mode === 'promotion'}
{/if}
Check repo settings to continue and save
{:else if repo.detectionState === 'loading'}
Checking repository...
{:else if repo.detectionState === 'no-wmill'}
No git sync configuration found. Configure your sync settings below.
Initialize Git repository
{:else if repo.detectionState === 'has-wmill'}
Found existing git sync configuration. Settings loaded from repository.
Save connection
{:else if repo.detectionState === 'error'}
{repo.detectionError || 'Failed to check repository'}
{/if} {#if repo.detectionJobId && (repo.detectionState === 'loading' || repo.detectionState === 'error')}
{#if repo.detectionJobStatus === 'running'}
{:else if repo.detectionJobStatus === 'success'}
{:else if repo.detectionJobStatus === 'failure'}
{/if} Detection job:
{repo.detectionJobId}
{/if}
{/if}