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,335 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "id": {
9
+ "type": ["null", "integer"]
10
+ },
11
+ "node_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "url": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "actor": {
18
+ "$ref": "user.json"
19
+ },
20
+ "event": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "commit_id": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "commit_url": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "created_at": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "state_reason": {
34
+ "type": ["null", "string"]
35
+ },
36
+ "label": {
37
+ "type": ["null", "object"],
38
+ "properties": {
39
+ "name": {
40
+ "type": ["null", "string"]
41
+ },
42
+ "color": {
43
+ "type": ["null", "string"]
44
+ }
45
+ }
46
+ },
47
+ "review_requester": {
48
+ "$ref": "user.json"
49
+ },
50
+ "issue": {
51
+ "type": ["null", "object"],
52
+ "properties": {
53
+ "id": {
54
+ "type": ["null", "integer"]
55
+ },
56
+ "node_id": {
57
+ "type": ["null", "string"]
58
+ },
59
+ "url": {
60
+ "type": ["null", "string"]
61
+ },
62
+ "repository_url": {
63
+ "type": ["null", "string"]
64
+ },
65
+ "labels_url": {
66
+ "type": ["null", "string"]
67
+ },
68
+ "comments_url": {
69
+ "type": ["null", "string"]
70
+ },
71
+ "events_url": {
72
+ "type": ["null", "string"]
73
+ },
74
+ "html_url": {
75
+ "type": ["null", "string"]
76
+ },
77
+ "number": {
78
+ "type": ["null", "integer"]
79
+ },
80
+ "state": {
81
+ "type": ["null", "string"]
82
+ },
83
+ "title": {
84
+ "type": ["null", "string"]
85
+ },
86
+ "body": {
87
+ "type": ["null", "string"]
88
+ },
89
+ "user": {
90
+ "$ref": "user.json"
91
+ }
92
+ }
93
+ },
94
+ "performed_via_github_app": {
95
+ "type": ["null", "object"],
96
+ "properties": {
97
+ "id": {
98
+ "type": ["null", "integer"]
99
+ },
100
+ "slug": {
101
+ "type": ["null", "string"]
102
+ },
103
+ "node_id": {
104
+ "type": ["null", "string"]
105
+ },
106
+ "owner": {
107
+ "$ref": "user.json"
108
+ },
109
+ "name": {
110
+ "type": ["null", "string"]
111
+ },
112
+ "description": {
113
+ "type": ["null", "string"]
114
+ },
115
+ "external_url": {
116
+ "type": ["null", "string"]
117
+ },
118
+ "html_url": {
119
+ "type": ["null", "string"]
120
+ },
121
+ "created_at": {
122
+ "type": "string",
123
+ "format": "date-time"
124
+ },
125
+ "updated_at": {
126
+ "type": "string",
127
+ "format": "date-time"
128
+ },
129
+ "permissions": {
130
+ "type": ["null", "object"],
131
+ "properties": {
132
+ "actions": {
133
+ "type": ["null", "string"]
134
+ },
135
+ "administration": {
136
+ "type": ["null", "string"]
137
+ },
138
+ "checks": {
139
+ "type": ["null", "string"]
140
+ },
141
+ "contents": {
142
+ "type": ["null", "string"]
143
+ },
144
+ "deployments": {
145
+ "type": ["null", "string"]
146
+ },
147
+ "discussions": {
148
+ "type": ["null", "string"]
149
+ },
150
+ "issues": {
151
+ "type": ["null", "string"]
152
+ },
153
+ "merge_queues": {
154
+ "type": ["null", "string"]
155
+ },
156
+ "metadata": {
157
+ "type": ["null", "string"]
158
+ },
159
+ "packages": {
160
+ "type": ["null", "string"]
161
+ },
162
+ "pages": {
163
+ "type": ["null", "string"]
164
+ },
165
+ "pull_requests": {
166
+ "type": ["null", "string"]
167
+ },
168
+ "repository_hooks": {
169
+ "type": ["null", "string"]
170
+ },
171
+ "repository_projects": {
172
+ "type": ["null", "string"]
173
+ },
174
+ "security_events": {
175
+ "type": ["null", "string"]
176
+ },
177
+ "statuses": {
178
+ "type": ["null", "string"]
179
+ },
180
+ "vulnerability_alerts": {
181
+ "type": ["null", "string"]
182
+ }
183
+ }
184
+ },
185
+ "events": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": ["null", "string"]
189
+ }
190
+ }
191
+ }
192
+ },
193
+ "milestone": {
194
+ "type": ["null", "object"],
195
+ "properties": {
196
+ "title": {
197
+ "type": ["null", "string"]
198
+ }
199
+ }
200
+ },
201
+ "assignee": {
202
+ "$ref": "user.json"
203
+ },
204
+ "assigner": {
205
+ "$ref": "user.json"
206
+ },
207
+ "project_card": {
208
+ "type": ["null", "object"],
209
+ "properties": {
210
+ "id": {
211
+ "type": ["null", "integer"]
212
+ },
213
+ "url": {
214
+ "type": ["null", "string"]
215
+ },
216
+ "project_id": {
217
+ "type": ["null", "integer"]
218
+ },
219
+ "project_url": {
220
+ "type": ["null", "string"]
221
+ },
222
+ "column_name": {
223
+ "type": ["null", "string"]
224
+ },
225
+ "previous_column_name": {
226
+ "type": ["null", "string"]
227
+ }
228
+ }
229
+ },
230
+ "dismissed_review": {
231
+ "type": ["null", "object"],
232
+ "properties": {
233
+ "state": {
234
+ "type": ["null", "string"]
235
+ },
236
+ "review_id": {
237
+ "type": ["null", "integer"]
238
+ },
239
+ "dismissal_message": {
240
+ "type": ["null", "string"]
241
+ }
242
+ }
243
+ },
244
+ "requested_team": {
245
+ "type": ["null", "object"],
246
+ "properties": {
247
+ "name": {
248
+ "type": ["null", "string"]
249
+ },
250
+ "id": {
251
+ "type": ["null", "integer"]
252
+ },
253
+ "node_id": {
254
+ "type": ["null", "string"]
255
+ },
256
+ "slug": {
257
+ "type": ["null", "string"]
258
+ },
259
+ "description": {
260
+ "type": ["null", "string"]
261
+ },
262
+ "privacy": {
263
+ "type": ["null", "string"]
264
+ },
265
+ "url": {
266
+ "type": ["null", "string"]
267
+ },
268
+ "html_url": {
269
+ "type": ["null", "string"]
270
+ },
271
+ "members_url": {
272
+ "type": ["null", "string"]
273
+ },
274
+ "repositories_url": {
275
+ "type": ["null", "string"]
276
+ },
277
+ "permission": {
278
+ "type": ["null", "string"]
279
+ },
280
+ "parent": {
281
+ "type": ["null", "object"],
282
+ "properties": {
283
+ "name": {
284
+ "type": ["null", "string"]
285
+ },
286
+ "id": {
287
+ "type": ["null", "integer"]
288
+ },
289
+ "node_id": {
290
+ "type": ["null", "string"]
291
+ },
292
+ "slug": {
293
+ "type": ["null", "string"]
294
+ },
295
+ "description": {
296
+ "type": ["null", "string"]
297
+ },
298
+ "privacy": {
299
+ "type": ["null", "string"]
300
+ },
301
+ "url": {
302
+ "type": ["null", "string"]
303
+ },
304
+ "html_url": {
305
+ "type": ["null", "string"]
306
+ },
307
+ "members_url": {
308
+ "type": ["null", "string"]
309
+ },
310
+ "repositories_url": {
311
+ "type": ["null", "string"]
312
+ },
313
+ "permission": {
314
+ "type": ["null", "string"]
315
+ }
316
+ }
317
+ }
318
+ }
319
+ },
320
+ "rename": {
321
+ "type": ["null", "object"],
322
+ "properties": {
323
+ "from": {
324
+ "type": ["null", "string"]
325
+ },
326
+ "to": {
327
+ "type": ["null", "string"]
328
+ }
329
+ }
330
+ },
331
+ "requested_reviewer": {
332
+ "$ref": "user.json"
333
+ }
334
+ }
335
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "id": {
9
+ "type": ["null", "integer"]
10
+ },
11
+ "node_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "url": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "name": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "description": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "color": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "default": {
27
+ "type": ["null", "boolean"]
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "url": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "html_url": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "labels_url": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "id": {
18
+ "type": ["null", "integer"]
19
+ },
20
+ "node_id": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "number": {
24
+ "type": ["null", "integer"]
25
+ },
26
+ "state": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "title": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "description": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "creator": {
36
+ "$ref": "user.json"
37
+ },
38
+ "open_issues": {
39
+ "type": ["null", "integer"]
40
+ },
41
+ "closed_issues": {
42
+ "type": ["null", "integer"]
43
+ },
44
+ "created_at": {
45
+ "type": "string",
46
+ "format": "date-time"
47
+ },
48
+ "updated_at": {
49
+ "type": "string",
50
+ "format": "date-time"
51
+ },
52
+ "closed_at": {
53
+ "type": ["null", "string"],
54
+ "format": "date-time"
55
+ },
56
+ "due_on": {
57
+ "type": ["null", "string"],
58
+ "format": "date-time"
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": ["null", "object"],
4
+ "properties": {
5
+ "id": {
6
+ "type": ["null", "integer"]
7
+ },
8
+ "node_id": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "content": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "created_at": {
15
+ "type": "string",
16
+ "format": "date-time"
17
+ },
18
+ "user": {
19
+ "$ref": "user_graphql.json"
20
+ },
21
+ "repository": {
22
+ "type": "string"
23
+ },
24
+ "issue_number": {
25
+ "type": "integer"
26
+ }
27
+ }
28
+ }