Skip to content

Commit

Permalink
🐛 Source Github: add new streams Deployments, ProjectColumns, `Pu…
Browse files Browse the repository at this point in the history
…llRequestCommits` (#10385)

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
  • Loading branch information
grubberr authored Mar 3, 2022
1 parent d73af69 commit b2aa695
Show file tree
Hide file tree
Showing 13 changed files with 598 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
- name: GitHub
sourceDefinitionId: ef69ef6e-aa7f-4af1-a01d-ef775033524e
dockerRepository: airbyte/source-github
dockerImageTag: 0.2.19
dockerImageTag: 0.2.20
documentationUrl: https://docs.airbyte.io/integrations/sources/github
icon: github.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-github:0.2.19"
- dockerImage: "airbyte/source-github:0.2.20"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/github"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.19
LABEL io.airbyte.version=0.2.20
LABEL io.airbyte.name=airbyte/source-github
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ tests:
comments: ["airbytehq/integration-test", "updated_at"]
commit_comments: ["airbytehq/integration-test", "updated_at"]
commits: ["airbytehq/integration-test", "master", "created_at"]
deployments: ["airbytehq/integration-test", "updated_at"]
events: ["airbytehq/integration-test", "created_at"]
issue_events: ["airbytehq/integration-test", "created_at"]
issue_milestones: ["airbytehq/integration-test", "updated_at"]
issues: ["airbytehq/integration-test", "updated_at"]
project_columns: ["airbytehq/integration-test", "13167124", "updated_at"]
projects: ["airbytehq/integration-test", "updated_at"]
pull_request_stats: ["airbytehq/integration-test", "updated_at"]
pull_requests: ["airbytehq/integration-test", "updated_at"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"created_at": "2121-06-30T10:04:41Z"
}
},
"deployments": {
"airbytehq/integration-test": {
"updated_at": "2121-06-30T10:04:41Z"
}
},
"events": {
"airbytehq/integration-test": {
"created_at": "2121-06-29T03:44:45Z"
Expand All @@ -34,6 +39,16 @@
"updated_at": "2121-06-30T06:44:42Z"
}
},
"project_columns": {
"airbytehq/integration-test": {
"13167122": {
"updated_at": "2121-06-29T02:04:57Z"
},
"13167124": {
"updated_at": "2121-06-29T02:04:57Z"
}
}
},
"projects": {
"airbytehq/integration-test": {
"updated_at": "2121-06-28T17:24:51Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@
"destination_sync_mode": "append",
"cursor_field": ["created_at"]
},
{
"stream": {
"name": "deployments",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "events",
Expand Down Expand Up @@ -171,6 +184,19 @@
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "project_columns",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
},
{
"stream": {
"name": "projects",
Expand All @@ -194,6 +220,16 @@
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "pull_request_commits",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["sha"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "pull_request_stats",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"url": {
"type": ["null", "string"]
},
"id": {
"type": ["null", "integer"]
},
"node_id": {
"type": ["null", "string"]
},
"task": {
"type": ["null", "string"]
},
"original_environment": {
"type": ["null", "string"]
},
"environment": {
"type": ["null", "string"]
},
"description": {
"type": ["null", "string"]
},
"created_at": {
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"statuses_url": {
"type": ["null", "string"]
},
"repository_url": {
"type": ["null", "string"]
},
"creator": {
"type": "object",
"properties": {
"login": {
"type": ["null", "string"]
},
"id": {
"type": ["null", "integer"]
},
"node_id": {
"type": ["null", "string"]
},
"avatar_url": {
"type": ["null", "string"]
},
"gravatar_id": {
"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": {
"type": ["null", "string"]
},
"site_admin": {
"type": ["null", "boolean"]
}
}
},
"sha": {
"type": ["null", "string"]
},
"ref": {
"type": ["null", "string"]
},
"payload": {
"type": ["null", "string", "object"]
},
"transient_environment": {
"type": ["null", "boolean"]
},
"production_environment": {
"type": ["null", "boolean"]
},
"performed_via_github_app": {
"type": ["null", "string"]
},
"repository": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"url": {
"type": ["null", "string"]
},
"project_url": {
"type": ["null", "string"]
},
"cards_url": {
"type": ["null", "string"]
},
"id": {
"type": ["null", "integer"]
},
"node_id": {
"type": ["null", "string"]
},
"name": {
"type": ["null", "string"]
},
"created_at": {
"type": ["null", "string"]
},
"updated_at": {
"type": ["null", "string"]
},
"repository": {
"type": ["null", "string"]
},
"project_id": {
"type": ["null", "string"]
}
}
}
Loading

0 comments on commit b2aa695

Please sign in to comment.