Skip to content

Commit

Permalink
Merge pull request #16 from fivetran/feature/dbt-compatibility
Browse files Browse the repository at this point in the history
dbt 20 compatibility updates
  • Loading branch information
fivetran-joemarkiewicz authored Jul 23, 2021
2 parents 89a49dd + 938fc15 commit 00e780b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![dbt logo and version](https://img.shields.io/static/v1?logo=dbt&label=dbt-version&message=0.20.x&color=orange)
# GitHub (Source)

This package models GitHub data from [Fivetran's connector](https://fivetran.com/docs/applications/GitHub). It uses data in the format described by [this ERD](https://docs.google.com/presentation/d/1lx6ez7-x-s-n2JCnCi3SjG4XMmx9ysNUvaNCaWc3I_I/edit).
Expand All @@ -21,6 +22,14 @@ This package contains staging models, designed to work simultaneously with our [
## Installation Instructions
Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.

Include in your `packages.yml`

```yaml
packages:
- package: fivetran/github_source
version: [">=0.3.0", "<0.4.0"]
```
## Configuration
By default, this package will run using your target database and the `github` schema. If this is not where your GitHub data is (perhaps your gitHub schema is `Github_fivetran`), add the following configuration to your `dbt_project.yml` file:

Expand Down
4 changes: 2 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config-version: 2

name: 'github_source'
version: '0.2.3'
version: '0.3.0'

require-dbt-version: [">=0.18.0", "<0.20.0"]
require-dbt-version: ">=0.20.0"

models:
github_source:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'github_source_integration_tests'
version: '0.2.3'
version: '0.3.0'
config-version: 2

profile: 'integration_tests'
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dbt==0.19.0
dbt~=0.20.0
4 changes: 2 additions & 2 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: fivetran/fivetran_utils
version: [">=0.1.0", "<0.2.0"]
- package: fivetran/fivetran_utils
version: [">=0.2.0", "<0.3.0"]

0 comments on commit 00e780b

Please sign in to comment.