Skip to content

Commit 38f91f3

Browse files
committed
add gitlab_push
1 parent 26903ea commit 38f91f3

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Deploy this project to your Tinybird account and configure the webhooks for the
1212

1313
- [Auth0 Log Streams](https://www.tinybird.co/docs/get-data-in/guides/ingest-auth0-logs)
1414
- [Clerk](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-clerk)
15+
- [GitLab](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-gitlab)
1516
- [Orb](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-orb)
1617
- [Resend](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-resend)
1718
- [Rudderstack](https://www.tinybird.co/docs/get-data-in/guides/ingest-from-rudderstack)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
TOKEN "append" APPEND
2+
3+
# Refer to https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#push-events
4+
5+
TAGS "gitlab"
6+
7+
SCHEMA >
8+
`object_kind` String `json:$.object_kind`,
9+
`event_name` String `json:$.event_name`,
10+
`before` String `json:$.before`,
11+
`after` String `json:$.after`,
12+
`ref` String `json:$.ref`,
13+
`ref_protected` Boolean `json:$.ref_protected`,
14+
`checkout_sha` String `json:$.checkout_sha`,
15+
`user_id` String `json:$.user_id`,
16+
`user_name` String `json:$.user_name`,
17+
`user_username` String `json:$.user_username`,
18+
`user_email` String `json:$.user_email`,
19+
`user_avatar` String `json:$.user_avatar`,
20+
`project_id` String `json:$.project_id`,
21+
`project` JSON `json:$.project` DEFAULT '{}',
22+
`repository_name` String `json:$.repository.name`,
23+
`repository` JSON `json:$.repository` DEFAULT '{}',
24+
`commits` Array(JSON) `json:$.commits` DEFAULT '[]',
25+
`total_commits_count` Int64 `json:$.total_commits_count`
26+
27+
ENGINE "MergeTree"
28+
ENGINE_SORTING_KEY "project_id, repository_name, user_id"

0 commit comments

Comments
 (0)