From e651f51478cc02ad2363517a26d82e90040f12a1 Mon Sep 17 00:00:00 2001 From: Laurent Savaete Date: Tue, 31 Aug 2021 10:51:54 +0100 Subject: [PATCH] Update commits schema based on github api docs --- tap_github/schemas/commits.json | 210 +++++++++++++++++++++----------- 1 file changed, 142 insertions(+), 68 deletions(-) diff --git a/tap_github/schemas/commits.json b/tap_github/schemas/commits.json index 0e611d11..bdc41a43 100644 --- a/tap_github/schemas/commits.json +++ b/tap_github/schemas/commits.json @@ -5,6 +5,9 @@ "_sdc_repository": { "type": ["string"] }, + "node_id": { + "type": ["null", "string"] + }, "sha": { "type": ["null", "string"], "description": "The git commit hash" @@ -25,72 +28,6 @@ "url": { "type": ["null", "string"], "description": "The URL to the parent commit" - }, - "html_url": { - "type": ["null", "string"], - "description": "The HTML URL to the parent commit" - } - } - } - }, - "files": { - "type": [ - "null", - "array" - ], - "items": { - "type": [ - "null", - "object" - ], - "properties": { - "filename": { - "type": [ - "null", - "string" - ] - }, - "additions": { - "type": [ - "null", - "number" - ] - }, - "deletions": { - "type": [ - "null", - "number" - ] - }, - "changes": { - "type": [ - "null", - "number" - ] - }, - "status": { - "type": [ - "null", - "string" - ] - }, - "raw_url": { - "type": [ - "null", - "string" - ] - }, - "blob_url": { - "type": [ - "null", - "string" - ] - }, - "patch": { - "type": [ - "null", - "string" - ] } } } @@ -103,6 +40,126 @@ "type": ["null", "string"], "description": "The URL to the commit's comments page" }, + "author": { + "type": ["null", "object"], + "additionalProperties": false, + "properties": { + "login": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "number"] + }, + "node_id": { + "type": ["null", "string"] + }, + "avatar_url": { + "type": ["null", "string"] + }, + "gravatar_url": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + }, + "html_url": { + "type": ["null", "string"] + }, + "followers_url": { + "type": ["null", "string"] + }, + "following_url": { + "type": ["null", "string"] + }, + "gists_url": { + "type": ["null", "string"] + }, + "starred_url": { + "type": ["null", "string"] + }, + "subscriptions_url": { + "type": ["null", "string"] + }, + "organizations_url": { + "type": ["null", "string"] + }, + "repos_url": { + "type": ["null", "string"] + }, + "events_url": { + "type": ["null", "string"] + }, + "received_events_url": { + "type": ["null", "string"] + }, + "type_url": { + "type": ["null", "string"] + }, + "site_admin": { + "type": ["null", "boolean"] + } + } + }, + "committer": { + "type": ["null", "object"], + "additionalProperties": false, + "properties": { + "login": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "number"] + }, + "node_id": { + "type": ["null", "string"] + }, + "avatar_url": { + "type": ["null", "string"] + }, + "gravatar_url": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + }, + "html_url": { + "type": ["null", "string"] + }, + "followers_url": { + "type": ["null", "string"] + }, + "following_url": { + "type": ["null", "string"] + }, + "gists_url": { + "type": ["null", "string"] + }, + "starred_url": { + "type": ["null", "string"] + }, + "subscriptions_url": { + "type": ["null", "string"] + }, + "organizations_url": { + "type": ["null", "string"] + }, + "repos_url": { + "type": ["null", "string"] + }, + "events_url": { + "type": ["null", "string"] + }, + "received_events_url": { + "type": ["null", "string"] + }, + "type_url": { + "type": ["null", "string"] + }, + "site_admin": { + "type": ["null", "boolean"] + } + } + }, "commit": { "type": ["null", "object"], "additionalProperties": false, @@ -173,12 +230,29 @@ } } }, + "verification": { + "type": ["null", "object"], + "additionalProperties": false, + "properties": { + "verified": { + "type": ["null", "boolean"] + }, + "reason": { + "type": ["null", "string"] + }, + "signature": { + "type": ["null", "string"] + }, + "payload": { + "type": ["null", "string"] + } + } + }, "comment_count": { "type": ["null", "integer"], "description": "The number of comments on the commit" } } } - }, - "additionalProperties": false + } }