-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dbt): add release_published github event type (#2146)
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
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
15 changes: 15 additions & 0 deletions
15
warehouse/dbt/models/staging/github/stg_github__releases.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,15 @@ | ||
with release_events as ( | ||
select * | ||
from {{ ref('stg_github__events') }} as ghe | ||
where ghe.type = "ReleaseEvent" | ||
) | ||
|
||
select | ||
id as id, | ||
created_at as created_at, | ||
repo.id as repository_id, | ||
repo.name as repository_name, | ||
actor.id as actor_id, | ||
actor.login as actor_login, | ||
"RELEASE_PUBLISHED" as `type` | ||
from release_events |
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