Represents a Git repository synchronization event for a Streamline automation. ## Object Structure ```json { "id": "rslog_def456", "automation_id": "sauto_abc123", "organization_id": "org_xyz789", "sync_type": "webhook", "status": "error", "event_type": "pull", "commit_sha": null, "error_code": "REPO_NOT_FOUND", "error_message": "Repository has been deleted or is no longer accessible", "details": "{\"repository_url\": \"https://github.com/user/repo\"}", "duration_ms": 450, "created_at": "2025-11-28T10:30:00Z" } ``` ## Fields **`id`** string Unique log ID (rslog_ prefixed) **`automation_id`** string Automation ID this log belongs to **`organization_id`** string Organization ID **`sync_type`** string How sync was triggered: `webhook`, `manual`, `scheduled` **`status`** string Sync result: `success`, `error`, `warning` **`event_type`** string Type of sync event: `pull`, `webhook_register`, `webhook_remove`, `validation`, `credential_check` **`commit_sha`** string | null Git commit SHA (for successful pulls) **`error_code`** string | null Error code (when status is `error`) **`error_message`** string | null Human-readable error/warning message **`details`** string | null Additional details as JSON string **`duration_ms`** integer | null Operation duration in milliseconds **`created_at`** string ISO 8601 timestamp of the event ## Event Types ### pull Code synchronization from Git repository. - **Success**: Code pulled and updated successfully - **Error**: Repository deleted, access denied, network failure - **Warning**: Partial sync, merge conflicts detected ### webhook_register GitHub webhook registration. - **Success**: Webhook registered with GitHub - **Error**: GitHub API failure, invalid credentials - **Warning**: Webhook already exists ### webhook_remove GitHub webhook removal. - **Success**: Webhook removed from GitHub - **Error**: GitHub API failure - **Warning**: Webhook not found (already removed) ### validation Repository/credentials validation. - **Success**: Repository accessible, credentials valid - **Error**: Repository not found, invalid credentials ### credential_check Periodic credential validation. - **Success**: Credentials still valid - **Error**: Credentials expired or revoked ## Sync Types | Type | Description | | --- | --- | | `webhook` | Triggered automatically by GitHub push event | | `manual` | User-initiated sync via UI or API | | `scheduled` | Periodic background sync | ## Status Values | Status | Description | | --- | --- | | `success` | Operation completed successfully | | `error` | Operation failed | | `warning` | Operation completed with warnings | ## Common Error Codes | Error Code | Description | Resolution | | --- | --- | --- | | `REPO_NOT_FOUND` | Repository deleted or inaccessible | Update repository URL or restore access | | `INVALID_CREDENTIALS` | GitHub credentials invalid/expired | Update credentials in automation settings | | `AUTHENTICATION_FAILED` | GitHub authentication failed | Verify token has required permissions | | `RATE_LIMIT_EXCEEDED` | GitHub API rate limit reached | Wait and retry, or upgrade GitHub plan | | `NETWORK_ERROR` | Network connectivity issue | Check network and retry | | `WEBHOOK_REGISTRATION_FAILED` | Failed to register webhook | Check repository permissions |