airbyte-source-github 1.5.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. airbyte_source_github-1.5.7.dist-info/METADATA +144 -0
  2. airbyte_source_github-1.5.7.dist-info/RECORD +88 -0
  3. airbyte_source_github-1.5.7.dist-info/WHEEL +5 -0
  4. airbyte_source_github-1.5.7.dist-info/entry_points.txt +2 -0
  5. airbyte_source_github-1.5.7.dist-info/top_level.txt +3 -0
  6. integration_tests/__init__.py +0 -0
  7. integration_tests/abnormal_state.json +237 -0
  8. integration_tests/acceptance.py +16 -0
  9. integration_tests/configured_catalog.json +435 -0
  10. integration_tests/configured_catalog_full_refresh_test.json +415 -0
  11. integration_tests/invalid_config.json +5 -0
  12. integration_tests/sample_config.json +5 -0
  13. integration_tests/sample_state.json +137 -0
  14. source_github/__init__.py +27 -0
  15. source_github/config_migrations.py +106 -0
  16. source_github/constants.py +9 -0
  17. source_github/github_schema.py +41034 -0
  18. source_github/graphql.py +327 -0
  19. source_github/run.py +17 -0
  20. source_github/schemas/assignees.json +63 -0
  21. source_github/schemas/branches.json +48 -0
  22. source_github/schemas/collaborators.json +80 -0
  23. source_github/schemas/comments.json +104 -0
  24. source_github/schemas/commit_comment_reactions.json +4 -0
  25. source_github/schemas/commit_comments.json +53 -0
  26. source_github/schemas/commits.json +126 -0
  27. source_github/schemas/contributor_activity.json +109 -0
  28. source_github/schemas/deployments.json +77 -0
  29. source_github/schemas/events.json +63 -0
  30. source_github/schemas/issue_comment_reactions.json +4 -0
  31. source_github/schemas/issue_events.json +335 -0
  32. source_github/schemas/issue_labels.json +30 -0
  33. source_github/schemas/issue_milestones.json +61 -0
  34. source_github/schemas/issue_reactions.json +28 -0
  35. source_github/schemas/issue_timeline_events.json +1056 -0
  36. source_github/schemas/issues.json +281 -0
  37. source_github/schemas/organizations.json +197 -0
  38. source_github/schemas/project_cards.json +50 -0
  39. source_github/schemas/project_columns.json +38 -0
  40. source_github/schemas/projects.json +50 -0
  41. source_github/schemas/projects_v2.json +80 -0
  42. source_github/schemas/pull_request_comment_reactions.json +28 -0
  43. source_github/schemas/pull_request_commits.json +122 -0
  44. source_github/schemas/pull_request_stats.json +84 -0
  45. source_github/schemas/pull_requests.json +363 -0
  46. source_github/schemas/releases.json +126 -0
  47. source_github/schemas/repositories.json +313 -0
  48. source_github/schemas/review_comments.json +118 -0
  49. source_github/schemas/reviews.json +69 -0
  50. source_github/schemas/shared/events/comment.json +188 -0
  51. source_github/schemas/shared/events/commented.json +118 -0
  52. source_github/schemas/shared/events/committed.json +56 -0
  53. source_github/schemas/shared/events/cross_referenced.json +784 -0
  54. source_github/schemas/shared/events/reviewed.json +139 -0
  55. source_github/schemas/shared/reaction.json +27 -0
  56. source_github/schemas/shared/reactions.json +35 -0
  57. source_github/schemas/shared/user.json +59 -0
  58. source_github/schemas/shared/user_graphql.json +26 -0
  59. source_github/schemas/stargazers.json +19 -0
  60. source_github/schemas/tags.json +32 -0
  61. source_github/schemas/team_members.json +66 -0
  62. source_github/schemas/team_memberships.json +24 -0
  63. source_github/schemas/teams.json +50 -0
  64. source_github/schemas/users.json +63 -0
  65. source_github/schemas/workflow_jobs.json +109 -0
  66. source_github/schemas/workflow_runs.json +449 -0
  67. source_github/schemas/workflows.json +41 -0
  68. source_github/source.py +339 -0
  69. source_github/spec.json +179 -0
  70. source_github/streams.py +1678 -0
  71. source_github/utils.py +152 -0
  72. unit_tests/__init__.py +3 -0
  73. unit_tests/conftest.py +29 -0
  74. unit_tests/projects_v2_pull_requests_query.json +3 -0
  75. unit_tests/pull_request_stats_query.json +3 -0
  76. unit_tests/responses/contributor_activity_response.json +33 -0
  77. unit_tests/responses/graphql_reviews_responses.json +405 -0
  78. unit_tests/responses/issue_timeline_events.json +166 -0
  79. unit_tests/responses/issue_timeline_events_response.json +170 -0
  80. unit_tests/responses/projects_v2_response.json +45 -0
  81. unit_tests/responses/pull_request_comment_reactions.json +744 -0
  82. unit_tests/responses/pull_request_stats_response.json +317 -0
  83. unit_tests/test_migrations/test_config.json +8 -0
  84. unit_tests/test_migrations/test_new_config.json +8 -0
  85. unit_tests/test_multiple_token_authenticator.py +160 -0
  86. unit_tests/test_source.py +326 -0
  87. unit_tests/test_stream.py +1471 -0
  88. unit_tests/utils.py +78 -0
@@ -0,0 +1,449 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": ["null", "integer"]
7
+ },
8
+ "name": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "node_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "head_branch": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "head_sha": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "path": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "display_title": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "run_number": {
27
+ "type": ["null", "integer"]
28
+ },
29
+ "event": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "status": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "conclusion": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "workflow_id": {
39
+ "type": ["null", "integer"]
40
+ },
41
+ "check_suite_id": {
42
+ "type": ["null", "integer"]
43
+ },
44
+ "check_suite_node_id": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "url": {
48
+ "type": ["null", "string"]
49
+ },
50
+ "html_url": {
51
+ "type": ["null", "string"]
52
+ },
53
+ "pull_requests": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": ["null", "object"],
57
+ "properties": {},
58
+ "additionalProperties": true
59
+ }
60
+ },
61
+ "created_at": {
62
+ "type": "string",
63
+ "format": "date-time"
64
+ },
65
+ "updated_at": {
66
+ "type": "string",
67
+ "format": "date-time"
68
+ },
69
+ "run_attempt": {
70
+ "type": ["null", "integer"]
71
+ },
72
+ "referenced_workflows": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "object",
76
+ "properties": {
77
+ "path": {
78
+ "type": "string"
79
+ },
80
+ "sha": {
81
+ "type": "string"
82
+ },
83
+ "ref": {
84
+ "type": "string"
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "run_started_at": {
90
+ "type": "string",
91
+ "format": "date-time"
92
+ },
93
+ "jobs_url": {
94
+ "type": ["null", "string"]
95
+ },
96
+ "logs_url": {
97
+ "type": ["null", "string"]
98
+ },
99
+ "check_suite_url": {
100
+ "type": ["null", "string"]
101
+ },
102
+ "artifacts_url": {
103
+ "type": ["null", "string"]
104
+ },
105
+ "cancel_url": {
106
+ "type": ["null", "string"]
107
+ },
108
+ "rerun_url": {
109
+ "type": ["null", "string"]
110
+ },
111
+ "previous_attempt_url": {
112
+ "type": ["null", "string"]
113
+ },
114
+ "workflow_url": {
115
+ "type": ["null", "string"]
116
+ },
117
+ "head_commit": {
118
+ "type": "object",
119
+ "properties": {
120
+ "id": {
121
+ "type": ["null", "string"]
122
+ },
123
+ "tree_id": {
124
+ "type": ["null", "string"]
125
+ },
126
+ "message": {
127
+ "type": ["null", "string"]
128
+ },
129
+ "timestamp": {
130
+ "type": ["null", "string"]
131
+ },
132
+ "author": {
133
+ "type": "object",
134
+ "properties": {
135
+ "name": {
136
+ "type": ["null", "string"]
137
+ },
138
+ "email": {
139
+ "type": ["null", "string"]
140
+ }
141
+ }
142
+ },
143
+ "committer": {
144
+ "type": "object",
145
+ "properties": {
146
+ "name": {
147
+ "type": ["null", "string"]
148
+ },
149
+ "email": {
150
+ "type": ["null", "string"]
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "repository": {
157
+ "type": "object",
158
+ "properties": {
159
+ "id": {
160
+ "type": ["null", "integer"]
161
+ },
162
+ "node_id": {
163
+ "type": ["null", "string"]
164
+ },
165
+ "name": {
166
+ "type": ["null", "string"]
167
+ },
168
+ "full_name": {
169
+ "type": "string"
170
+ },
171
+ "private": {
172
+ "type": ["null", "boolean"]
173
+ },
174
+ "owner": {
175
+ "$ref": "user.json"
176
+ },
177
+ "html_url": {
178
+ "type": ["null", "string"]
179
+ },
180
+ "description": {
181
+ "type": ["null", "string"]
182
+ },
183
+ "fork": {
184
+ "type": ["null", "boolean"]
185
+ },
186
+ "url": {
187
+ "type": ["null", "string"]
188
+ },
189
+ "forks_url": {
190
+ "type": ["null", "string"]
191
+ },
192
+ "keys_url": {
193
+ "type": ["null", "string"]
194
+ },
195
+ "collaborators_url": {
196
+ "type": ["null", "string"]
197
+ },
198
+ "teams_url": {
199
+ "type": ["null", "string"]
200
+ },
201
+ "hooks_url": {
202
+ "type": ["null", "string"]
203
+ },
204
+ "issue_events_url": {
205
+ "type": ["null", "string"]
206
+ },
207
+ "events_url": {
208
+ "type": ["null", "string"]
209
+ },
210
+ "assignees_url": {
211
+ "type": ["null", "string"]
212
+ },
213
+ "branches_url": {
214
+ "type": ["null", "string"]
215
+ },
216
+ "tags_url": {
217
+ "type": ["null", "string"]
218
+ },
219
+ "blobs_url": {
220
+ "type": ["null", "string"]
221
+ },
222
+ "git_tags_url": {
223
+ "type": ["null", "string"]
224
+ },
225
+ "git_refs_url": {
226
+ "type": ["null", "string"]
227
+ },
228
+ "trees_url": {
229
+ "type": ["null", "string"]
230
+ },
231
+ "statuses_url": {
232
+ "type": ["null", "string"]
233
+ },
234
+ "languages_url": {
235
+ "type": ["null", "string"]
236
+ },
237
+ "stargazers_url": {
238
+ "type": ["null", "string"]
239
+ },
240
+ "contributors_url": {
241
+ "type": ["null", "string"]
242
+ },
243
+ "subscribers_url": {
244
+ "type": ["null", "string"]
245
+ },
246
+ "subscription_url": {
247
+ "type": ["null", "string"]
248
+ },
249
+ "commits_url": {
250
+ "type": ["null", "string"]
251
+ },
252
+ "git_commits_url": {
253
+ "type": ["null", "string"]
254
+ },
255
+ "comments_url": {
256
+ "type": ["null", "string"]
257
+ },
258
+ "issue_comment_url": {
259
+ "type": ["null", "string"]
260
+ },
261
+ "contents_url": {
262
+ "type": ["null", "string"]
263
+ },
264
+ "compare_url": {
265
+ "type": ["null", "string"]
266
+ },
267
+ "merges_url": {
268
+ "type": ["null", "string"]
269
+ },
270
+ "archive_url": {
271
+ "type": ["null", "string"]
272
+ },
273
+ "downloads_url": {
274
+ "type": ["null", "string"]
275
+ },
276
+ "issues_url": {
277
+ "type": ["null", "string"]
278
+ },
279
+ "pulls_url": {
280
+ "type": ["null", "string"]
281
+ },
282
+ "milestones_url": {
283
+ "type": ["null", "string"]
284
+ },
285
+ "notifications_url": {
286
+ "type": ["null", "string"]
287
+ },
288
+ "labels_url": {
289
+ "type": ["null", "string"]
290
+ },
291
+ "releases_url": {
292
+ "type": ["null", "string"]
293
+ },
294
+ "deployments_url": {
295
+ "type": ["null", "string"]
296
+ }
297
+ }
298
+ },
299
+ "head_repository": {
300
+ "type": ["null", "object"],
301
+ "properties": {
302
+ "id": {
303
+ "type": ["null", "integer"]
304
+ },
305
+ "node_id": {
306
+ "type": ["null", "string"]
307
+ },
308
+ "name": {
309
+ "type": ["null", "string"]
310
+ },
311
+ "full_name": {
312
+ "type": ["null", "string"]
313
+ },
314
+ "private": {
315
+ "type": ["null", "boolean"]
316
+ },
317
+ "owner": {
318
+ "$ref": "user.json"
319
+ },
320
+ "html_url": {
321
+ "type": ["null", "string"]
322
+ },
323
+ "description": {
324
+ "type": ["null", "string"]
325
+ },
326
+ "fork": {
327
+ "type": ["null", "boolean"]
328
+ },
329
+ "url": {
330
+ "type": ["null", "string"]
331
+ },
332
+ "forks_url": {
333
+ "type": ["null", "string"]
334
+ },
335
+ "keys_url": {
336
+ "type": ["null", "string"]
337
+ },
338
+ "collaborators_url": {
339
+ "type": ["null", "string"]
340
+ },
341
+ "teams_url": {
342
+ "type": ["null", "string"]
343
+ },
344
+ "hooks_url": {
345
+ "type": ["null", "string"]
346
+ },
347
+ "issue_events_url": {
348
+ "type": ["null", "string"]
349
+ },
350
+ "events_url": {
351
+ "type": ["null", "string"]
352
+ },
353
+ "assignees_url": {
354
+ "type": ["null", "string"]
355
+ },
356
+ "branches_url": {
357
+ "type": ["null", "string"]
358
+ },
359
+ "tags_url": {
360
+ "type": ["null", "string"]
361
+ },
362
+ "blobs_url": {
363
+ "type": ["null", "string"]
364
+ },
365
+ "git_tags_url": {
366
+ "type": ["null", "string"]
367
+ },
368
+ "git_refs_url": {
369
+ "type": ["null", "string"]
370
+ },
371
+ "trees_url": {
372
+ "type": ["null", "string"]
373
+ },
374
+ "statuses_url": {
375
+ "type": ["null", "string"]
376
+ },
377
+ "languages_url": {
378
+ "type": ["null", "string"]
379
+ },
380
+ "stargazers_url": {
381
+ "type": ["null", "string"]
382
+ },
383
+ "contributors_url": {
384
+ "type": ["null", "string"]
385
+ },
386
+ "subscribers_url": {
387
+ "type": ["null", "string"]
388
+ },
389
+ "subscription_url": {
390
+ "type": ["null", "string"]
391
+ },
392
+ "commits_url": {
393
+ "type": ["null", "string"]
394
+ },
395
+ "git_commits_url": {
396
+ "type": ["null", "string"]
397
+ },
398
+ "comments_url": {
399
+ "type": ["null", "string"]
400
+ },
401
+ "issue_comment_url": {
402
+ "type": ["null", "string"]
403
+ },
404
+ "contents_url": {
405
+ "type": ["null", "string"]
406
+ },
407
+ "compare_url": {
408
+ "type": ["null", "string"]
409
+ },
410
+ "merges_url": {
411
+ "type": ["null", "string"]
412
+ },
413
+ "archive_url": {
414
+ "type": ["null", "string"]
415
+ },
416
+ "downloads_url": {
417
+ "type": ["null", "string"]
418
+ },
419
+ "issues_url": {
420
+ "type": ["null", "string"]
421
+ },
422
+ "pulls_url": {
423
+ "type": ["null", "string"]
424
+ },
425
+ "milestones_url": {
426
+ "type": ["null", "string"]
427
+ },
428
+ "notifications_url": {
429
+ "type": ["null", "string"]
430
+ },
431
+ "labels_url": {
432
+ "type": ["null", "string"]
433
+ },
434
+ "releases_url": {
435
+ "type": ["null", "string"]
436
+ },
437
+ "deployments_url": {
438
+ "type": ["null", "string"]
439
+ }
440
+ }
441
+ },
442
+ "actor": {
443
+ "$ref": "user.json"
444
+ },
445
+ "triggering_actor": {
446
+ "$ref": "user.json"
447
+ }
448
+ }
449
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-04/schema#",
3
+ "type": ["null", "object"],
4
+ "properties": {
5
+ "id": {
6
+ "type": "integer"
7
+ },
8
+ "node_id": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "name": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "path": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "state": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "created_at": {
21
+ "type": "string",
22
+ "format": "date-time"
23
+ },
24
+ "updated_at": {
25
+ "type": "string",
26
+ "format": "date-time"
27
+ },
28
+ "url": {
29
+ "type": ["null", "string"]
30
+ },
31
+ "html_url": {
32
+ "type": ["null", "string"]
33
+ },
34
+ "badge_url": {
35
+ "type": ["null", "string"]
36
+ },
37
+ "repository": {
38
+ "type": "string"
39
+ }
40
+ }
41
+ }