Skip to content

Commit

Permalink
feat: update github schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 22, 2024
1 parent cf0f0aa commit d116ea1
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 303 deletions.
39 changes: 7 additions & 32 deletions schemas/github.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"count_of_named_tables": 35,
"count_of_named_columns": 548,
"count_of_named_tables": 30,
"count_of_named_columns": 512,
"tables": [
{
"table_name": "github_actions_artifact",
Expand All @@ -27,11 +27,6 @@
"description": "",
"count_of_columns": 10
},
{
"table_name": "github_blob",
"description": "Gets a blob from a repository.",
"count_of_columns": 7
},
{
"table_name": "github_branch",
"description": "Branches in the given repository.",
Expand All @@ -45,7 +40,7 @@
{
"table_name": "github_commit",
"description": "GitHub Commits bundle project files for download by users.",
"count_of_columns": 12
"count_of_columns": 11
},
{
"table_name": "github_container_package",
Expand Down Expand Up @@ -88,9 +83,9 @@
"count_of_columns": 26
},
{
"table_name": "github_organization_external_identity",
"description": "GitHub members for a given organization. GitHub Users are user accounts in GitHub.",
"count_of_columns": 7
"table_name": "github_organization_team",
"description": "GitHub Teams in a given organization. GitHub Teams are groups of organization members that reflect your company or group's structure with cascading access permissions and mentions.",
"count_of_columns": 29
},
{
"table_name": "github_pull_request",
Expand All @@ -102,16 +97,6 @@
"description": "Pull Request Reviews are groups of pull request review comments on a pull request.",
"count_of_columns": 12
},
{
"table_name": "github_rate_limit",
"description": "Rate limit of github.",
"count_of_columns": 6
},
{
"table_name": "github_rate_limit_graphql",
"description": "Rate limit information for GitHub GraphQL API endpoint.",
"count_of_columns": 6
},
{
"table_name": "github_release",
"description": "GitHub Releases bundle project files for download by users.",
Expand All @@ -120,7 +105,7 @@
{
"table_name": "github_repository",
"description": "GitHub Repositories contain all of your project's files and each file's revision history.",
"count_of_columns": 27
"count_of_columns": 28
},
{
"table_name": "github_repository_collaborator",
Expand Down Expand Up @@ -162,16 +147,6 @@
"description": "Tags for commits in the given repository.",
"count_of_columns": 7
},
{
"table_name": "github_team",
"description": "GitHub Teams in a given organization. GitHub Teams are groups of organization members that reflect your company or group's structure with cascading access permissions and mentions.",
"count_of_columns": 29
},
{
"table_name": "github_tree",
"description": "Lists directories and files in the given repository's git tree.",
"count_of_columns": 10
},
{
"table_name": "github_workflow",
"description": "GitHub Workflows bundle project files for download by users.",
Expand Down
41 changes: 0 additions & 41 deletions schemas/github/github_blob.json

This file was deleted.

45 changes: 20 additions & 25 deletions schemas/github/github_commit.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,59 @@
"table_description": "GitHub Commits bundle project files for download by users.",
"columns": [
{
"name": "id",
"name": "sha",
"type": "text",
"description": "Unique identifier (SHA) of the commit."
},
{
"name": "message",
"name": "node_id",
"type": "text",
"description": "Commit message."
"description": ""
},
{
"name": "author",
"name": "commit_detail",
"type": "json",
"description": "Name of the author of the commit."
"description": "Details of the commit."
},
{
"name": "date",
"name": "url",
"type": "text",
"description": "Date of the commit."
},
{
"name": "comment_count",
"type": "integer",
"description": "Number of comments on the commit."
"description": "URL of the commit."
},
{
"name": "html_url",
"type": "text",
"description": "URL of the commit on the repository."
},
{
"name": "is_verified",
"type": "boolean",
"description": "Indicates if the commit is verified."
"name": "comments_url",
"type": "text",
"description": ""
},
{
"name": "changes",
"name": "author",
"type": "json",
"description": "Details of the changes made in the commit."
"description": "Details of the author of the commit"
},
{
"name": "files",
"name": "commiter",
"type": "json",
"description": "List of files changed in the commit."
"description": "Details of the commiter of the commit"
},
{
"name": "pull_requests",
"name": "parents",
"type": "json",
"description": "List of associated pull request IDs."
"description": "Parent commits of the commit"
},
{
"name": "target",
"name": "stats",
"type": "json",
"description": "Target details of the commit (e.g., branch, organization, repository)."
"description": "Stats of the commit"
},
{
"name": "additional_details",
"name": "files",
"type": "json",
"description": "Additional details about the commit."
"description": "List of files changed in the commit."
}
]
}
41 changes: 0 additions & 41 deletions schemas/github/github_organization_external_identity.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"table_name": "github_team",
"table_name": "github_organization_team",
"table_description": "GitHub Teams in a given organization. GitHub Teams are groups of organization members that reflect your company or group's structure with cascading access permissions and mentions.",
"columns": [
{
Expand Down
36 changes: 0 additions & 36 deletions schemas/github/github_rate_limit.json

This file was deleted.

36 changes: 0 additions & 36 deletions schemas/github/github_rate_limit_graphql.json

This file was deleted.

5 changes: 5 additions & 0 deletions schemas/github/github_repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
"type": "json",
"description": "Source repository details if the repository is forked."
},
{
"name": "primary_language",
"type": "text",
"description": "Primary language used in the repository."
},
{
"name": "languages",
"type": "json",
Expand Down
Loading

0 comments on commit d116ea1

Please sign in to comment.