Skip to content

Commit ad27f7f

Browse files
Merge pull request #294 from jstrachan/poll-webhook
fix: add support for polling webhooks
2 parents a1a0962 + cf1554d commit ad27f7f

File tree

6 files changed

+631
-0
lines changed

6 files changed

+631
-0
lines changed
Lines changed: 375 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,375 @@
1+
{
2+
"object_kind": "push",
3+
"event_name": "push",
4+
"before": "2a5e548bfc0a6b8975956a219e03caabb9e799c7",
5+
"after": "8f784b32840472e7fda687b1c18e2bef26af768b",
6+
"ref": "refs/heads/master",
7+
"checkout_sha": "8f784b32840472e7fda687b1c18e2bef26af768b",
8+
"message": null,
9+
"user_id": 510,
10+
"user_name": "Jenkins X Bot",
11+
"user_username": "jenkins-x-bot",
12+
"user_email": "",
13+
"user_avatar": "https://repository.server.com/uploads/-/system/user/avatar/510/avatar.png",
14+
"project_id": 1066,
15+
"project": {
16+
"id": 1066,
17+
"name": "repo-name",
18+
"description": "",
19+
"web_url": "https://repository.server.com/repo-org/repo-name",
20+
"avatar_url": null,
21+
"git_ssh_url": "[email protected]:repo-org/repo-name.git",
22+
"git_http_url": "https://repository.server.com/repo-org/repo-name.git",
23+
"namespace": "repo-org",
24+
"visibility_level": 0,
25+
"path_with_namespace": "repo-org/repo-name",
26+
"default_branch": "master",
27+
"ci_config_path": null,
28+
"homepage": "https://repository.server.com/repo-org/repo-name",
29+
"url": "[email protected]:repo-org/repo-name.git",
30+
"ssh_url": "[email protected]:repo-org/repo-name.git",
31+
"http_url": "https://repository.server.com/repo-org/repo-name.git"
32+
},
33+
"commits": [
34+
{
35+
"id": "6d0e1a018f28a3dcbb2a6b5feecdc70d7b332b19",
36+
"message": "chore: initial chart deploy\n",
37+
"title": "chore: initial chart deploy",
38+
"timestamp": "2021-07-05T09:03:50+02:00",
39+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/6d0e1a018f28a3dcbb2a6b5feecdc70d7b332b19",
40+
"author": {
41+
"name": "User one",
42+
"email": "[email protected]"
43+
},
44+
"added": [
45+
".lighthouse/OWNERS",
46+
".lighthouse/jenkins-x/devsecops.yaml",
47+
".lighthouse/jenkins-x/qa.yaml",
48+
"charts/OWNERS"
49+
],
50+
"modified": [
51+
".lighthouse/jenkins-x/pullrequest.yaml",
52+
".lighthouse/jenkins-x/release.yaml",
53+
".lighthouse/jenkins-x/triggers.yaml",
54+
"OWNERS",
55+
"charts/repo-name/templates/canary.yaml",
56+
"charts/repo-name/templates/database.yaml",
57+
"charts/repo-name/templates/deployment.yaml",
58+
"charts/repo-name/templates/hpa.yaml",
59+
"charts/repo-name/templates/ingress.yaml",
60+
"charts/repo-name/templates/ksvc.yaml",
61+
"charts/repo-name/templates/secrets.yaml",
62+
"charts/repo-name/templates/service.yaml",
63+
"charts/repo-name/templates/virtualservice.yaml",
64+
"charts/repo-name/values.yaml",
65+
"preview/values.yaml.gotmpl"
66+
],
67+
"removed": [
68+
69+
]
70+
},
71+
{
72+
"id": "96f5f00cc116367cf6a30c14477ec31ae8ebf1a2",
73+
"message": "chore: add sonar-project.properties\n",
74+
"title": "chore: add sonar-project.properties",
75+
"timestamp": "2021-07-05T09:35:46+02:00",
76+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/96f5f00cc116367cf6a30c14477ec31ae8ebf1a2",
77+
"author": {
78+
"name": "User one",
79+
"email": "[email protected]"
80+
},
81+
"added": [
82+
".lighthouse/sonar-project.properties"
83+
],
84+
"modified": [
85+
86+
],
87+
"removed": [
88+
89+
]
90+
},
91+
{
92+
"id": "0423ad753848980e4ba0c14ec6be65f21e69239d",
93+
"message": "chore: fix deployment. Remove cas config\n",
94+
"title": "chore: fix deployment. Remove cas config",
95+
"timestamp": "2021-07-05T09:42:16+02:00",
96+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/0423ad753848980e4ba0c14ec6be65f21e69239d",
97+
"author": {
98+
"name": "User one",
99+
"email": "[email protected]"
100+
},
101+
"added": [
102+
103+
],
104+
"modified": [
105+
"charts/repo-name/templates/deployment.yaml"
106+
],
107+
"removed": [
108+
109+
]
110+
},
111+
{
112+
"id": "d293c6f2d5558be50790ca832c9d17b71c9f497b",
113+
"message": "chore: fix datasource url in deployment\n",
114+
"title": "chore: fix datasource url in deployment",
115+
"timestamp": "2021-07-05T09:50:49+02:00",
116+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/d293c6f2d5558be50790ca832c9d17b71c9f497b",
117+
"author": {
118+
"name": "User one",
119+
"email": "[email protected]"
120+
},
121+
"added": [
122+
123+
],
124+
"modified": [
125+
"charts/repo-name/templates/deployment.yaml"
126+
],
127+
"removed": [
128+
129+
]
130+
},
131+
{
132+
"id": "63bd85ea79e6d0d866d9d3a2de1365b24ee23e73",
133+
"message": "chore: fix database host\n",
134+
"title": "chore: fix database host",
135+
"timestamp": "2021-07-05T15:50:36+02:00",
136+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/63bd85ea79e6d0d866d9d3a2de1365b24ee23e73",
137+
"author": {
138+
"name": "User one",
139+
"email": "[email protected]"
140+
},
141+
"added": [
142+
143+
],
144+
"modified": [
145+
"charts/repo-name/values.yaml"
146+
],
147+
"removed": [
148+
149+
]
150+
},
151+
{
152+
"id": "8576d740a2582fcaae91057226b720f45796bede",
153+
"message": "chore: fix database sid\n",
154+
"title": "chore: fix database sid",
155+
"timestamp": "2021-07-05T15:58:46+02:00",
156+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/8576d740a2582fcaae91057226b720f45796bede",
157+
"author": {
158+
"name": "User one",
159+
"email": "[email protected]"
160+
},
161+
"added": [
162+
163+
],
164+
"modified": [
165+
"charts/repo-name/values.yaml"
166+
],
167+
"removed": [
168+
169+
]
170+
},
171+
{
172+
"id": "43175005b4814a7b11abab1e91f4552f86632272",
173+
"message": "chore: fix database users for preview environment\n",
174+
"title": "chore: fix database users for preview environment",
175+
"timestamp": "2021-07-05T16:04:17+02:00",
176+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/43175005b4814a7b11abab1e91f4552f86632272",
177+
"author": {
178+
"name": "User one",
179+
"email": "[email protected]"
180+
},
181+
"added": [
182+
183+
],
184+
"modified": [
185+
"preview/values.yaml.gotmpl"
186+
],
187+
"removed": [
188+
189+
]
190+
},
191+
{
192+
"id": "7555a93ca798b82a7cca45f28645a5a28610d22a",
193+
"message": "Merge branch 'master' into chore/initial-chart-deploy\n",
194+
"title": "Merge branch 'master' into chore/initial-chart-deploy",
195+
"timestamp": "2021-07-05T16:22:33+02:00",
196+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/7555a93ca798b82a7cca45f28645a5a28610d22a",
197+
"author": {
198+
"name": "User one",
199+
"email": "[email protected]"
200+
},
201+
"added": [
202+
203+
],
204+
"modified": [
205+
"pom.xml"
206+
],
207+
"removed": [
208+
209+
]
210+
},
211+
{
212+
"id": "deab3602751dd1190422f164beb478b576fe0c33",
213+
"message": "chore: fix probePath and flyway\n",
214+
"title": "chore: fix probePath and flyway",
215+
"timestamp": "2021-07-05T16:39:59+02:00",
216+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/deab3602751dd1190422f164beb478b576fe0c33",
217+
"author": {
218+
"name": "User one",
219+
"email": "[email protected]"
220+
},
221+
"added": [
222+
223+
],
224+
"modified": [
225+
"charts/repo-name/templates/deployment.yaml",
226+
"charts/repo-name/values.yaml"
227+
],
228+
"removed": [
229+
230+
]
231+
},
232+
{
233+
"id": "1087739df0d56c4829a91442a773b1d831ea0a7c",
234+
"message": "Merge branch 'master' into chore/initial-chart-deploy\n",
235+
"title": "Merge branch 'master' into chore/initial-chart-deploy",
236+
"timestamp": "2021-07-05T20:03:09+02:00",
237+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/1087739df0d56c4829a91442a773b1d831ea0a7c",
238+
"author": {
239+
"name": "User one",
240+
"email": "[email protected]"
241+
},
242+
"added": [
243+
244+
],
245+
"modified": [
246+
"src/main/resources/application.yml"
247+
],
248+
"removed": [
249+
"src/main/java/com/example/repository/ConcessionRepository.java",
250+
"src/test/java/com/example/service/ConcessionServiceTest.java"
251+
]
252+
},
253+
{
254+
"id": "ff6714a0afe35d0ad3fb4e529d0ecde359a6d8a2",
255+
"message": "test",
256+
"title": "test",
257+
"timestamp": "2021-07-06T10:16:20+02:00",
258+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/ff6714a0afe35d0ad3fb4e529d0ecde359a6d8a2",
259+
"author": {
260+
"name": "User two",
261+
"email": "[email protected]"
262+
},
263+
"added": [
264+
265+
],
266+
"modified": [
267+
"src/main/java/com/example/service/impl/CatalogItemServiceImpl.java",
268+
"src/test/java/com/example/service/BulletinServiceTest.java",
269+
"src/test/java/com/example/service/CatalogItemServiceTest.java",
270+
"src/test/java/com/example/service/ShopServiceTest.java"
271+
],
272+
"removed": [
273+
274+
]
275+
},
276+
{
277+
"id": "4b32e05fcfad3887ea9bbd0e41a241394e888c2d",
278+
"message": "Merge branch 'feature/test' into chore/initial-chart-deploy",
279+
"title": "Merge branch 'feature/test' into chore/initial-chart-deploy",
280+
"timestamp": "2021-07-06T12:19:44+02:00",
281+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/4b32e05fcfad3887ea9bbd0e41a241394e888c2d",
282+
"author": {
283+
"name": "User two",
284+
"email": "[email protected]"
285+
},
286+
"added": [
287+
288+
],
289+
"modified": [
290+
"src/main/java/com/example/service/impl/CatalogItemServiceImpl.java",
291+
"src/test/java/com/example/service/BulletinServiceTest.java",
292+
"src/test/java/com/example/service/CatalogItemServiceTest.java",
293+
"src/test/java/com/example/service/ShopServiceTest.java"
294+
],
295+
"removed": [
296+
297+
]
298+
},
299+
{
300+
"id": "54c45471e313d4c551027e47404286a58530422c",
301+
"message": "Incluir 0.0.6",
302+
"title": "Incluir 0.0.6",
303+
"timestamp": "2021-07-06T12:28:39+02:00",
304+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/54c45471e313d4c551027e47404286a58530422c",
305+
"author": {
306+
"name": "User two",
307+
"email": "[email protected]"
308+
},
309+
"added": [
310+
311+
],
312+
"modified": [
313+
"pom.xml"
314+
],
315+
"removed": [
316+
317+
]
318+
},
319+
{
320+
"id": "8f784b32840472e7fda687b1c18e2bef26af768b",
321+
"message": "Merge branch 'chore/initial-chart-deploy' into 'master'\n\nchore: initial chart deploy\n\nSee merge request repo-org/repo-name!74",
322+
"title": "Merge branch 'chore/initial-chart-deploy' into 'master'",
323+
"timestamp": "2021-07-06T11:08:55+00:00",
324+
"url": "https://repository.server.com/repo-org/repo-name/-/commit/8f784b32840472e7fda687b1c18e2bef26af768b",
325+
"author": {
326+
"name": "Jenkins X Bot",
327+
"email": "[email protected]"
328+
},
329+
"added": [
330+
".lighthouse/OWNERS",
331+
".lighthouse/jenkins-x/devsecops.yaml",
332+
".lighthouse/jenkins-x/qa.yaml",
333+
".lighthouse/sonar-project.properties",
334+
"charts/OWNERS"
335+
],
336+
"modified": [
337+
".lighthouse/jenkins-x/pullrequest.yaml",
338+
".lighthouse/jenkins-x/release.yaml",
339+
".lighthouse/jenkins-x/triggers.yaml",
340+
"OWNERS",
341+
"charts/repo-name/templates/canary.yaml",
342+
"charts/repo-name/templates/database.yaml",
343+
"charts/repo-name/templates/deployment.yaml",
344+
"charts/repo-name/templates/hpa.yaml",
345+
"charts/repo-name/templates/ingress.yaml",
346+
"charts/repo-name/templates/ksvc.yaml",
347+
"charts/repo-name/templates/secrets.yaml",
348+
"charts/repo-name/templates/service.yaml",
349+
"charts/repo-name/templates/virtualservice.yaml",
350+
"charts/repo-name/values.yaml",
351+
"pom.xml",
352+
"preview/values.yaml.gotmpl",
353+
"src/main/java/com/example/service/impl/CatalogItemServiceImpl.java",
354+
"src/test/java/com/example/service/BulletinServiceTest.java",
355+
"src/test/java/com/example/service/CatalogItemServiceTest.java",
356+
"src/test/java/com/example/service/ShopServiceTest.java"
357+
],
358+
"removed": [
359+
360+
]
361+
}
362+
],
363+
"total_commits_count": 14,
364+
"push_options": {
365+
},
366+
"repository": {
367+
"name": "repo-name",
368+
"url": "[email protected]:repo-org/repo-name.git",
369+
"description": "",
370+
"homepage": "https://repository.server.com/repo-org/repo-name",
371+
"git_http_url": "https://repository.server.com/repo-org/repo-name.git",
372+
"git_ssh_url": "[email protected]:repo-org/repo-name.git",
373+
"visibility_level": 0
374+
}
375+
}

0 commit comments

Comments
 (0)