Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit b2caf24

Browse files
Merge pull request #32 from fivetran/bug/add-disable-teams
bug/add-disable-teams
2 parents b8d1d00 + 4371154 commit b2caf24

11 files changed

Lines changed: 34 additions & 10 deletions

File tree

.buildkite/pipeline.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
steps:
2+
- label: ":postgres: Run Tests - Postgres"
3+
key: "run-dbt-postgres"
4+
plugins:
5+
- docker#v3.13.0:
6+
image: "python:3.8"
7+
shell: [ "/bin/bash", "-e", "-c" ]
8+
environment:
9+
- "BASH_ENV=/tmp/.bashrc"
10+
- "CI_POSTGRES_DBT_DBNAME"
11+
- "CI_POSTGRES_DBT_HOST"
12+
- "CI_POSTGRES_DBT_PASS"
13+
- "CI_POSTGRES_DBT_USER"
14+
commands: |
15+
bash .buildkite/scripts/run_models.sh postgres
16+
217
- label: ":snowflake-db: Run Tests - Snowflake"
318
key: "run_dbt_snowflake"
419
plugins:
@@ -43,7 +58,7 @@ steps:
4358
commands: |
4459
bash .buildkite/scripts/run_models.sh redshift
4560
46-
- label: ":bricks: Run Tests - Databricks"
61+
- label: ":databricks: Run Tests - Databricks"
4762
key: "run_dbt_databricks"
4863
plugins:
4964
- docker#v3.13.0:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# dbt_github_source v0.7.0
2+
## 🚨 Breaking Change 🚨
3+
- Expanded the variable `github__using_repo_team` to also toggle on/off the `TEAM` table along with and in addition to the `REPO_TEAM` table. This was done to fix issues with dependent models in our transform package, where `TEAM` is only ever used in conjunction with `REPO_TEAM`. ([#32](https://github.com/fivetran/dbt_github_source/pull/32))
4+
5+
## 🎉 Features 🎉
6+
- PostgreSQL compatibility! ([#32](https://github.com/fivetran/dbt_github_source/pull/32))
17
# dbt_github_source v0.6.0
28
[PR #26](https://github.com/fivetran/dbt_github_source/pull/26) includes the following breaking changes:
39
## 🚨 Breaking Changes 🚨:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
## Step 1: Prerequisites
2525
To use this dbt package, you must have the following:
2626
- At least one Fivetran Github connector syncing data into your destination.
27-
- A **BigQuery**, **Snowflake**, **Redshift** or **Databricks** destination.
27+
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL** or **Databricks** destination.
2828

2929
### Databricks Dispatch Configuration
3030
If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively.
@@ -40,7 +40,7 @@ Include the following github_source package version in your `packages.yml` file.
4040
```yaml
4141
packages:
4242
- package: fivetran/github_source
43-
version: [">=0.6.0", "<0.7.0"]
43+
version: [">=0.7.0", "<0.8.0"]
4444
```
4545

4646
## Step 3: Define database and schema variables
@@ -55,7 +55,7 @@ vars:
5555
## Step 4: Disable models for non-existent sources
5656
Your Github connector might not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that functionality in Github or have actively excluded some tables from your syncs.
5757

58-
If you do not have the `REPO_TEAM` table synced, add the following variable to your `dbt_project.yml` file:
58+
If you do not have the `TEAM` and `REPO_TEAM` tables synced, add the following variable to your `dbt_project.yml` file:
5959

6060
```yml
6161
vars:

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config-version: 2
22
name: 'github_source'
3-
version: '0.6.0'
3+
version: '0.7.0'
44
require-dbt-version: [">=1.3.0", "<2.0.0"]
55
models:
66
github_source:

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/run_results.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'github_source_integration_tests'
2-
version: '0.6.0'
2+
version: '0.7.0'
33
config-version: 2
44
profile: 'integration_tests'
55
vars:

models/stg_github__team.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ config(enabled=var('github__using_repo_team', True)) }}
12

23
with base as (
34

0 commit comments

Comments
 (0)