-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
301 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
connectors/source_github/models/fivetran_converter/github_issue_labels
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
connectors/source_github/models/fivetran_converter/issue_assignee.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% if target.type == "snowflake" %} | ||
|
||
with tmp as ( | ||
SELECT | ||
issue_id, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'issue_assignee') }} | ||
) | ||
select * from tmp | ||
|
||
{% elif target.type == "bigquery" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'issue_assignee') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{% elif target.type == "postgres" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'issue_assignee') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{%endif%} |
15 changes: 15 additions & 0 deletions
15
connectors/source_github/models/fivetran_converter/issue_assignee.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: issue_assignee | ||
schema: "{{ var('airbyte_schema', target.schema) }}" | ||
database: "{{ var('airbyte_database', target.database) }}" | ||
identifier: "{{ var('github_issue_assignee_identifier', 'issue_assignee') }}" | ||
description: All fields and field values associated with issue assignees. | ||
config: | ||
+enabled: "{{ var('using_fivetran_model', False) }}" | ||
columns: | ||
- name: issue_id | ||
description: The ID of the issue associated with the field. | ||
- name: user_id | ||
description: The ID of the user assigned to the issue. |
37 changes: 37 additions & 0 deletions
37
connectors/source_github/models/fivetran_converter/issue_closed_history.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% if target.type == "snowflake" %} | ||
|
||
with tmp as ( | ||
SELECT | ||
issue_id, | ||
updated_at, | ||
is_closed | ||
FROM | ||
{{ source('source_github', 'issue_closed_history') }} | ||
) | ||
select * from tmp | ||
|
||
{% elif target.type == "bigquery" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
updated_at, | ||
is_closed | ||
FROM | ||
{{ source('source_github', 'issue_closed_history') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{% elif target.type == "postgres" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
updated_at, | ||
is_closed | ||
FROM | ||
{{ source('source_github', 'issue_closed_hsitory') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{%endif%} |
17 changes: 17 additions & 0 deletions
17
connectors/source_github/models/fivetran_converter/issue_closed_history.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: issue_closed_history | ||
schema: "{{ var('airbyte_schema', target.schema) }}" | ||
database: "{{ var('airbyte_database', target.database) }}" | ||
identifier: "{{ var('github_issue_closed_history_identifier', 'issue_closed_history') }}" | ||
description: All fields and field values associated with issues with closed history. | ||
config: | ||
+enabled: "{{ var('using_fivetran_model', False) }}" | ||
columns: | ||
- name: issue_id | ||
description: The ID of the issue associated with the field. | ||
- name: updated_at | ||
description: The timestamp for when the issue was last modified. | ||
- name: is_closed | ||
description: The boolean for whether the issue is closed or not. |
34 changes: 34 additions & 0 deletions
34
connectors/source_github/models/fivetran_converter/issue_merged.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% if target.type == "snowflake" %} | ||
|
||
with tmp as ( | ||
SELECT | ||
issue_id, | ||
merged_at | ||
FROM | ||
{{ source('source_github', 'issue_merged') }} | ||
) | ||
select * from tmp | ||
|
||
{% elif target.type == "bigquery" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
merged_at | ||
FROM | ||
{{ source('source_github', 'issue_merged') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{% elif target.type == "postgres" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
issue_id, | ||
merged_at | ||
FROM | ||
{{ source('source_github', 'issue_closed_hsitory') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{%endif%} |
15 changes: 15 additions & 0 deletions
15
connectors/source_github/models/fivetran_converter/issue_merged.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: issue_merged | ||
schema: "{{ var('airbyte_schema', target.schema) }}" | ||
database: "{{ var('airbyte_database', target.database) }}" | ||
identifier: "{{ var('github_issue_merged_identifier', 'issue_merged') }}" | ||
description: All fields and field values associated with issues with issues merged. | ||
config: | ||
+enabled: "{{ var('using_fivetran_model', False) }}" | ||
columns: | ||
- name: issue_id | ||
description: The ID of the issue associated with the field. | ||
- name: merged_at | ||
description: The timestamp for when the issue was merged. |
42 changes: 42 additions & 0 deletions
42
connectors/source_github/models/fivetran_converter/pull_request_review.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% if target.type == "snowflake" %} | ||
|
||
with tmp as ( | ||
SELECT | ||
id as pull_request_review_id, | ||
pull_request_id, | ||
submitted_at, | ||
state, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'pull_request_review') }} | ||
) | ||
select * from tmp | ||
|
||
{% elif target.type == "bigquery" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
id as pull_request_review_id, | ||
pull_request_id, | ||
submitted_at, | ||
state, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'pull_request_review') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{% elif target.type == "postgres" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
id as pull_request_review_id, | ||
pull_request_id, | ||
submitted_at, | ||
state, | ||
user_id | ||
FROM | ||
{{ source('source_github', 'pull_request_review') }} | ||
) | ||
SELECT * FROM tmp | ||
{%endif%} |
21 changes: 21 additions & 0 deletions
21
connectors/source_github/models/fivetran_converter/pull_request_review.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: pull_request_review | ||
schema: "{{ var('airbyte_schema', target.schema) }}" | ||
database: "{{ var('airbyte_database', target.database) }}" | ||
identifier: "{{ var('github_pull_request_review_identifier', 'pull_request_review') }}" | ||
description: All fields and field values associated with pull request reviews. | ||
config: | ||
+enabled: "{{ var('using_fivetran_model', False) }}" | ||
columns: | ||
- name: pull_request_review_id | ||
description: The ID of the issue associated with the field. | ||
- name: pull_request_id | ||
description: The ID of the issue associated with the field. | ||
- name: submitted_at | ||
description: The timestamp for when the issue was last submitted. | ||
- name: state | ||
description: The boolean for whether the pull request is reviewed or not. | ||
- name: user_id | ||
description: The ID of the issue associated with the field. |
33 changes: 33 additions & 0 deletions
33
connectors/source_github/models/fivetran_converter/repo_team.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% if target.type == "snowflake" %} | ||
|
||
with tmp as ( | ||
SELECT | ||
repository_id, | ||
team_id | ||
FROM | ||
{{ source('source_github', 'repo_team') }} | ||
) | ||
select * from tmp | ||
|
||
{% elif target.type == "bigquery" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
repository_id, | ||
team_id | ||
FROM | ||
{{ source('source_github', 'repo_team') }} | ||
) | ||
SELECT * FROM tmp | ||
|
||
{% elif target.type == "postgres" %} | ||
|
||
WITH tmp AS ( | ||
SELECT | ||
repository_id, | ||
team_id | ||
FROM | ||
{{ source('source_github', 'repo_team') }} | ||
) | ||
SELECT * FROM tmp | ||
{%endif%} |
15 changes: 15 additions & 0 deletions
15
connectors/source_github/models/fivetran_converter/repo_team.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: repo_team | ||
schema: "{{ var('airbyte_schema', target.schema) }}" | ||
database: "{{ var('airbyte_database', target.database) }}" | ||
identifier: "{{ var('github_repo_team_identifier', 'repo_team') }}" | ||
description: All fields and field values associated with repo teams. | ||
config: | ||
+enabled: "{{ var('using_fivetran_model', False) }}" | ||
columns: | ||
- name: repository_id | ||
description: The ID of the repo associated with the field. | ||
- name: team_id | ||
description: The ID of the team associated with the field. |
Oops, something went wrong.