Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update commits schema based on github api docs #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 142 additions & 68 deletions tap_github/schemas/commits.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"_sdc_repository": {
"type": ["string"]
},
"node_id": {
"type": ["null", "string"]
},
"sha": {
"type": ["null", "string"],
"description": "The git commit hash"
Expand All @@ -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"
]
}
}
}
Expand All @@ -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,
Expand Down Expand Up @@ -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
}
}