diff --git a/doc/compiled.json b/doc/compiled.json index 04fc92caf..bcf383983 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -5383,13 +5383,18 @@ "failure" ] }, + "automatic": { + "type": "boolean", + "description": "When `true`, the sync was triggered automatically (for example by a Zero Touch Localization rule or an automation). When `false`, it was triggered manually.\n" + }, "pull_request_url": { "type": "string", "description": "URL of the pull request created on export" }, "auto_import": { "type": "boolean", - "description": "Whether the import was triggered by the repo push event" + "deprecated": true, + "description": "**Deprecated.** Use `automatic` instead. Only present on import events. Indicates whether the import was triggered automatically.\n" }, "errors": { "description": "List of error messages, in case of failure", @@ -5429,6 +5434,7 @@ "type": "import", "created_at": "2015-01-28T09:52:53Z", "status": "failure", + "automatic": true, "auto_import": true, "errors": [ "Error message 1", diff --git a/schemas/repo_sync_event.yaml b/schemas/repo_sync_event.yaml index 59ad4a416..46fb9251c 100644 --- a/schemas/repo_sync_event.yaml +++ b/schemas/repo_sync_event.yaml @@ -14,12 +14,21 @@ repo_sync_event: status: type: string enum: [running, success, failure] + automatic: + type: boolean + description: > + When `true`, the sync was triggered automatically (for example by a + Zero Touch Localization rule or an automation). When `false`, it was + triggered manually. pull_request_url: type: string description: URL of the pull request created on export auto_import: type: boolean - description: Whether the import was triggered by the repo push event + deprecated: true + description: > + **Deprecated.** Use `automatic` instead. Only present on import events. + Indicates whether the import was triggered automatically. errors: description: List of error messages, in case of failure type: array @@ -60,6 +69,7 @@ repo_sync_event: type: import created_at: '2015-01-28T09:52:53Z' status: failure + automatic: true auto_import: true errors: - "Error message 1"