Skip to content

Commit 932d530

Browse files
Update webhook schemas
1 parent 4b6c6d7 commit 932d530

File tree

2 files changed

+190
-0
lines changed

2 files changed

+190
-0
lines changed

webhook_schemas/branches_sync.json

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"event": {
6+
"type": "string"
7+
},
8+
"message": {
9+
"type": "string"
10+
},
11+
"sent_at": {
12+
"type": "string"
13+
},
14+
"user": {
15+
"type": "object",
16+
"properties": {
17+
"id": {
18+
"type": "string"
19+
},
20+
"username": {
21+
"type": "string"
22+
},
23+
"name": {
24+
"type": "string"
25+
},
26+
"gravatar_uid": {
27+
"type": "string"
28+
}
29+
},
30+
"required": [
31+
"id",
32+
"username",
33+
"name",
34+
"gravatar_uid"
35+
]
36+
},
37+
"project": {
38+
"type": "object",
39+
"properties": {
40+
"id": {
41+
"type": "string"
42+
},
43+
"name": {
44+
"type": "string"
45+
},
46+
"slug": {
47+
"type": "string"
48+
},
49+
"main_format": {
50+
"type": "string"
51+
},
52+
"project_image_url": {
53+
"type": "null"
54+
},
55+
"created_at": {
56+
"type": "string"
57+
},
58+
"updated_at": {
59+
"type": "string"
60+
},
61+
"point_of_contact": {
62+
"type": "null"
63+
}
64+
},
65+
"required": [
66+
"id",
67+
"name",
68+
"slug",
69+
"main_format",
70+
"project_image_url",
71+
"created_at",
72+
"updated_at",
73+
"point_of_contact"
74+
]
75+
},
76+
"branch": {
77+
"type": "object",
78+
"properties": {
79+
"name": {
80+
"type": "string"
81+
},
82+
"base_project_id": {
83+
"type": "string"
84+
},
85+
"branch_project_id": {
86+
"type": "string"
87+
},
88+
"created_at": {
89+
"type": "string"
90+
},
91+
"updated_at": {
92+
"type": "string"
93+
},
94+
"merged_at": {
95+
"type": "null"
96+
},
97+
"state": {
98+
"type": "string"
99+
},
100+
"created_by": {
101+
"type": "object",
102+
"properties": {
103+
"id": {
104+
"type": "string"
105+
},
106+
"username": {
107+
"type": "string"
108+
},
109+
"name": {
110+
"type": "string"
111+
},
112+
"gravatar_uid": {
113+
"type": "string"
114+
}
115+
},
116+
"required": [
117+
"id",
118+
"username",
119+
"name",
120+
"gravatar_uid"
121+
]
122+
},
123+
"merged_by": {
124+
"type": "null"
125+
}
126+
},
127+
"required": [
128+
"name",
129+
"base_project_id",
130+
"branch_project_id",
131+
"created_at",
132+
"updated_at",
133+
"merged_at",
134+
"state",
135+
"created_by",
136+
"merged_by"
137+
]
138+
}
139+
},
140+
"required": [
141+
"event",
142+
"message",
143+
"sent_at",
144+
"user",
145+
"project",
146+
"branch"
147+
]
148+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"event": "branches:sync",
3+
"message": "john.smith synced branch new-feature-1 in project Translation Project",
4+
"sent_at": "2025-10-14 13:38:49 UTC",
5+
"user": {
6+
"id": "24b9a53ad72e198ca332fba91bb95f57",
7+
"username": "john.smith",
8+
"name": "John Smith",
9+
"gravatar_uid": "1bc5edb4799fd8eec67c66122f47eb73"
10+
},
11+
"project": {
12+
"id": "b2abd3bd2c23ff0ac546e0a2d9aa0be1",
13+
"name": "Translation Project",
14+
"slug": "translation-project",
15+
"main_format": "yml",
16+
"project_image_url": null,
17+
"created_at": "2025-02-07 16:18:13 UTC",
18+
"updated_at": "2025-02-07 16:18:13 UTC",
19+
"point_of_contact": null
20+
},
21+
"branch": {
22+
"name": "new-feature-1",
23+
"base_project_id": "b2abd3bd2c23ff0ac546e0a2d9aa0be1",
24+
"branch_project_id": "8228978fc13f5eb3c4cbbe8ac9882b64",
25+
"created_at": "2025-02-07 16:18:13 UTC",
26+
"updated_at": "2025-10-14 13:38:48 UTC",
27+
"merged_at": null,
28+
"state": "initialized",
29+
"created_by": {
30+
"id": "24b9a53ad72e198ca332fba91bb95f57",
31+
"username": "john.smith",
32+
"name": "John Smith",
33+
"gravatar_uid": "1bc5edb4799fd8eec67c66122f47eb73"
34+
},
35+
"merged_by": {
36+
"id": "24b9a53ad72e198ca332fba91bb95f57",
37+
"username": "john.smith",
38+
"name": "John Smith",
39+
"gravatar_uid": "1bc5edb4799fd8eec67c66122f47eb73"
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)