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,435 @@
1
+ {
2
+ "streams": [
3
+ {
4
+ "stream": {
5
+ "name": "assignees",
6
+ "json_schema": {},
7
+ "supported_sync_modes": ["full_refresh"],
8
+ "source_defined_primary_key": [["id"]]
9
+ },
10
+ "sync_mode": "full_refresh",
11
+ "destination_sync_mode": "overwrite"
12
+ },
13
+ {
14
+ "stream": {
15
+ "name": "branches",
16
+ "json_schema": {},
17
+ "supported_sync_modes": ["full_refresh"],
18
+ "source_defined_primary_key": [["repository"], ["name"]]
19
+ },
20
+ "sync_mode": "full_refresh",
21
+ "destination_sync_mode": "overwrite"
22
+ },
23
+ {
24
+ "stream": {
25
+ "name": "collaborators",
26
+ "json_schema": {},
27
+ "supported_sync_modes": ["full_refresh"],
28
+ "source_defined_primary_key": [["id"]]
29
+ },
30
+ "sync_mode": "full_refresh",
31
+ "destination_sync_mode": "overwrite"
32
+ },
33
+ {
34
+ "stream": {
35
+ "name": "comments",
36
+ "json_schema": {},
37
+ "supported_sync_modes": ["full_refresh", "incremental"],
38
+ "source_defined_cursor": true,
39
+ "default_cursor_field": ["updated_at"],
40
+ "source_defined_primary_key": [["id"]]
41
+ },
42
+ "sync_mode": "incremental",
43
+ "destination_sync_mode": "append",
44
+ "cursor_field": ["updated_at"]
45
+ },
46
+ {
47
+ "stream": {
48
+ "name": "commit_comment_reactions",
49
+ "json_schema": {},
50
+ "supported_sync_modes": ["full_refresh", "incremental"],
51
+ "source_defined_primary_key": [["id"]]
52
+ },
53
+ "sync_mode": "incremental",
54
+ "destination_sync_mode": "overwrite"
55
+ },
56
+ {
57
+ "stream": {
58
+ "name": "commit_comments",
59
+ "json_schema": {},
60
+ "supported_sync_modes": ["full_refresh", "incremental"],
61
+ "source_defined_cursor": true,
62
+ "default_cursor_field": ["updated_at"],
63
+ "source_defined_primary_key": [["id"]]
64
+ },
65
+ "sync_mode": "incremental",
66
+ "destination_sync_mode": "append",
67
+ "cursor_field": ["updated_at"]
68
+ },
69
+ {
70
+ "stream": {
71
+ "name": "commits",
72
+ "json_schema": {},
73
+ "supported_sync_modes": ["full_refresh", "incremental"],
74
+ "source_defined_cursor": true,
75
+ "default_cursor_field": ["created_at"],
76
+ "source_defined_primary_key": [["sha"]]
77
+ },
78
+ "sync_mode": "incremental",
79
+ "destination_sync_mode": "append",
80
+ "cursor_field": ["created_at"]
81
+ },
82
+ {
83
+ "stream": {
84
+ "name": "contributor_activity",
85
+ "json_schema": {},
86
+ "supported_sync_modes": ["full_refresh"],
87
+ "source_defined_primary_key": [["id"]]
88
+ },
89
+ "sync_mode": "full_refresh",
90
+ "destination_sync_mode": "overwrite"
91
+ },
92
+ {
93
+ "stream": {
94
+ "name": "deployments",
95
+ "json_schema": {},
96
+ "supported_sync_modes": ["full_refresh", "incremental"],
97
+ "source_defined_cursor": true,
98
+ "default_cursor_field": ["updated_at"],
99
+ "source_defined_primary_key": [["id"]]
100
+ },
101
+ "sync_mode": "incremental",
102
+ "destination_sync_mode": "append",
103
+ "cursor_field": ["updated_at"]
104
+ },
105
+ {
106
+ "stream": {
107
+ "name": "events",
108
+ "json_schema": {},
109
+ "supported_sync_modes": ["full_refresh", "incremental"],
110
+ "source_defined_cursor": true,
111
+ "default_cursor_field": ["created_at"],
112
+ "source_defined_primary_key": [["id"]]
113
+ },
114
+ "sync_mode": "incremental",
115
+ "destination_sync_mode": "append",
116
+ "cursor_field": ["created_at"]
117
+ },
118
+ {
119
+ "stream": {
120
+ "name": "issue_comment_reactions",
121
+ "json_schema": {},
122
+ "supported_sync_modes": ["full_refresh", "incremental"],
123
+ "source_defined_primary_key": [["id"]]
124
+ },
125
+ "sync_mode": "incremental",
126
+ "destination_sync_mode": "overwrite"
127
+ },
128
+ {
129
+ "stream": {
130
+ "name": "issue_events",
131
+ "json_schema": {},
132
+ "supported_sync_modes": ["full_refresh", "incremental"],
133
+ "source_defined_cursor": true,
134
+ "default_cursor_field": ["created_at"],
135
+ "source_defined_primary_key": [["id"]]
136
+ },
137
+ "sync_mode": "incremental",
138
+ "destination_sync_mode": "append",
139
+ "cursor_field": ["created_at"]
140
+ },
141
+ {
142
+ "stream": {
143
+ "name": "issue_labels",
144
+ "json_schema": {},
145
+ "supported_sync_modes": ["full_refresh"],
146
+ "source_defined_primary_key": [["id"]]
147
+ },
148
+ "sync_mode": "full_refresh",
149
+ "destination_sync_mode": "overwrite"
150
+ },
151
+ {
152
+ "stream": {
153
+ "name": "issue_milestones",
154
+ "json_schema": {},
155
+ "supported_sync_modes": ["full_refresh", "incremental"],
156
+ "source_defined_cursor": true,
157
+ "default_cursor_field": ["updated_at"],
158
+ "source_defined_primary_key": [["id"]]
159
+ },
160
+ "sync_mode": "incremental",
161
+ "destination_sync_mode": "append",
162
+ "cursor_field": ["updated_at"]
163
+ },
164
+ {
165
+ "stream": {
166
+ "name": "issue_reactions",
167
+ "json_schema": {},
168
+ "supported_sync_modes": ["full_refresh", "incremental"],
169
+ "source_defined_primary_key": [["id"]]
170
+ },
171
+ "sync_mode": "incremental",
172
+ "destination_sync_mode": "overwrite"
173
+ },
174
+ {
175
+ "stream": {
176
+ "name": "issues",
177
+ "json_schema": {},
178
+ "supported_sync_modes": ["full_refresh", "incremental"],
179
+ "source_defined_cursor": true,
180
+ "default_cursor_field": ["updated_at"],
181
+ "source_defined_primary_key": [["id"]]
182
+ },
183
+ "sync_mode": "incremental",
184
+ "destination_sync_mode": "append",
185
+ "cursor_field": ["updated_at"]
186
+ },
187
+ {
188
+ "stream": {
189
+ "name": "organizations",
190
+ "json_schema": {},
191
+ "supported_sync_modes": ["full_refresh"],
192
+ "source_defined_primary_key": [["id"]]
193
+ },
194
+ "sync_mode": "full_refresh",
195
+ "destination_sync_mode": "overwrite"
196
+ },
197
+ {
198
+ "stream": {
199
+ "name": "project_cards",
200
+ "json_schema": {},
201
+ "supported_sync_modes": ["full_refresh", "incremental"],
202
+ "source_defined_cursor": true,
203
+ "default_cursor_field": ["updated_at"],
204
+ "source_defined_primary_key": [["id"]]
205
+ },
206
+ "sync_mode": "incremental",
207
+ "destination_sync_mode": "append",
208
+ "cursor_field": ["updated_at"]
209
+ },
210
+ {
211
+ "stream": {
212
+ "name": "project_columns",
213
+ "json_schema": {},
214
+ "supported_sync_modes": ["full_refresh", "incremental"],
215
+ "source_defined_cursor": true,
216
+ "default_cursor_field": ["updated_at"],
217
+ "source_defined_primary_key": [["id"]]
218
+ },
219
+ "sync_mode": "incremental",
220
+ "destination_sync_mode": "append",
221
+ "cursor_field": ["updated_at"]
222
+ },
223
+ {
224
+ "stream": {
225
+ "name": "projects",
226
+ "json_schema": {},
227
+ "supported_sync_modes": ["full_refresh", "incremental"],
228
+ "source_defined_cursor": true,
229
+ "default_cursor_field": ["updated_at"],
230
+ "source_defined_primary_key": [["id"]]
231
+ },
232
+ "sync_mode": "incremental",
233
+ "destination_sync_mode": "append",
234
+ "cursor_field": ["updated_at"]
235
+ },
236
+ {
237
+ "stream": {
238
+ "name": "pull_request_comment_reactions",
239
+ "json_schema": {},
240
+ "supported_sync_modes": ["full_refresh", "incremental"],
241
+ "source_defined_primary_key": [["id"]]
242
+ },
243
+ "sync_mode": "incremental",
244
+ "destination_sync_mode": "overwrite"
245
+ },
246
+ {
247
+ "stream": {
248
+ "name": "pull_request_commits",
249
+ "json_schema": {},
250
+ "supported_sync_modes": ["full_refresh"],
251
+ "source_defined_primary_key": [["sha"]]
252
+ },
253
+ "sync_mode": "full_refresh",
254
+ "destination_sync_mode": "overwrite"
255
+ },
256
+ {
257
+ "stream": {
258
+ "name": "pull_request_stats",
259
+ "json_schema": {},
260
+ "supported_sync_modes": ["full_refresh", "incremental"],
261
+ "source_defined_cursor": true,
262
+ "default_cursor_field": ["updated_at"],
263
+ "source_defined_primary_key": [["id"]]
264
+ },
265
+ "sync_mode": "incremental",
266
+ "destination_sync_mode": "append",
267
+ "cursor_field": ["updated_at"]
268
+ },
269
+ {
270
+ "stream": {
271
+ "name": "pull_requests",
272
+ "json_schema": {},
273
+ "supported_sync_modes": ["full_refresh", "incremental"],
274
+ "source_defined_cursor": true,
275
+ "default_cursor_field": ["updated_at"],
276
+ "source_defined_primary_key": [["id"]]
277
+ },
278
+ "sync_mode": "incremental",
279
+ "destination_sync_mode": "append",
280
+ "cursor_field": ["updated_at"]
281
+ },
282
+ {
283
+ "stream": {
284
+ "name": "releases",
285
+ "json_schema": {},
286
+ "supported_sync_modes": ["full_refresh", "incremental"],
287
+ "source_defined_cursor": true,
288
+ "default_cursor_field": ["created_at"],
289
+ "source_defined_primary_key": [["id"]]
290
+ },
291
+ "sync_mode": "incremental",
292
+ "destination_sync_mode": "append",
293
+ "cursor_field": ["created_at"]
294
+ },
295
+ {
296
+ "stream": {
297
+ "name": "repositories",
298
+ "json_schema": {},
299
+ "supported_sync_modes": ["full_refresh", "incremental"],
300
+ "source_defined_primary_key": [["id"]]
301
+ },
302
+ "sync_mode": "incremental",
303
+ "destination_sync_mode": "overwrite"
304
+ },
305
+ {
306
+ "stream": {
307
+ "name": "review_comments",
308
+ "json_schema": {},
309
+ "supported_sync_modes": ["full_refresh", "incremental"],
310
+ "source_defined_cursor": true,
311
+ "default_cursor_field": ["updated_at"],
312
+ "source_defined_primary_key": [["id"]]
313
+ },
314
+ "sync_mode": "incremental",
315
+ "destination_sync_mode": "append",
316
+ "cursor_field": ["updated_at"]
317
+ },
318
+ {
319
+ "stream": {
320
+ "name": "reviews",
321
+ "json_schema": {},
322
+ "supported_sync_modes": ["full_refresh", "incremental"],
323
+ "source_defined_cursor": true,
324
+ "default_cursor_field": ["updated_at"],
325
+ "source_defined_primary_key": [["id"]]
326
+ },
327
+ "sync_mode": "incremental",
328
+ "destination_sync_mode": "append",
329
+ "cursor_field": ["updated_at"]
330
+ },
331
+ {
332
+ "stream": {
333
+ "name": "stargazers",
334
+ "json_schema": {},
335
+ "supported_sync_modes": ["full_refresh", "incremental"],
336
+ "source_defined_cursor": true,
337
+ "default_cursor_field": ["starred_at"],
338
+ "source_defined_primary_key": [["user_id"]]
339
+ },
340
+ "sync_mode": "incremental",
341
+ "destination_sync_mode": "append",
342
+ "cursor_field": ["starred_at"]
343
+ },
344
+ {
345
+ "stream": {
346
+ "name": "tags",
347
+ "json_schema": {},
348
+ "supported_sync_modes": ["full_refresh"],
349
+ "source_defined_primary_key": [["repository"], ["name"]]
350
+ },
351
+ "sync_mode": "full_refresh",
352
+ "destination_sync_mode": "overwrite"
353
+ },
354
+ {
355
+ "stream": {
356
+ "name": "teams",
357
+ "json_schema": {},
358
+ "supported_sync_modes": ["full_refresh"],
359
+ "source_defined_primary_key": [["id"]]
360
+ },
361
+ "sync_mode": "full_refresh",
362
+ "destination_sync_mode": "overwrite"
363
+ },
364
+ {
365
+ "stream": {
366
+ "name": "users",
367
+ "json_schema": {},
368
+ "supported_sync_modes": ["full_refresh"],
369
+ "source_defined_primary_key": [["id"]]
370
+ },
371
+ "sync_mode": "full_refresh",
372
+ "destination_sync_mode": "overwrite"
373
+ },
374
+ {
375
+ "stream": {
376
+ "name": "workflows",
377
+ "json_schema": {},
378
+ "supported_sync_modes": ["full_refresh", "incremental"],
379
+ "source_defined_primary_key": [["id"]]
380
+ },
381
+ "sync_mode": "incremental",
382
+ "destination_sync_mode": "overwrite"
383
+ },
384
+ {
385
+ "stream": {
386
+ "name": "workflow_runs",
387
+ "json_schema": {},
388
+ "supported_sync_modes": ["full_refresh", "incremental"],
389
+ "source_defined_primary_key": [["id"]]
390
+ },
391
+ "sync_mode": "incremental",
392
+ "destination_sync_mode": "overwrite"
393
+ },
394
+ {
395
+ "stream": {
396
+ "name": "workflow_jobs",
397
+ "json_schema": {},
398
+ "supported_sync_modes": ["full_refresh", "incremental"],
399
+ "source_defined_primary_key": [["id"]]
400
+ },
401
+ "sync_mode": "incremental",
402
+ "destination_sync_mode": "overwrite"
403
+ },
404
+ {
405
+ "stream": {
406
+ "name": "team_members",
407
+ "json_schema": {},
408
+ "supported_sync_modes": ["full_refresh"],
409
+ "source_defined_primary_key": [["id"], ["team_slug"]]
410
+ },
411
+ "sync_mode": "full_refresh",
412
+ "destination_sync_mode": "overwrite"
413
+ },
414
+ {
415
+ "stream": {
416
+ "name": "team_memberships",
417
+ "json_schema": {},
418
+ "supported_sync_modes": ["full_refresh"],
419
+ "source_defined_primary_key": [["url"]]
420
+ },
421
+ "sync_mode": "full_refresh",
422
+ "destination_sync_mode": "overwrite"
423
+ },
424
+ {
425
+ "stream": {
426
+ "name": "issue_timeline_events",
427
+ "json_schema": {},
428
+ "supported_sync_modes": ["full_refresh"],
429
+ "source_defined_primary_key": [["repository"], ["issue_number"]]
430
+ },
431
+ "sync_mode": "full_refresh",
432
+ "destination_sync_mode": "overwrite"
433
+ }
434
+ ]
435
+ }