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,126 @@
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
+ "assets_url": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "upload_url": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "tarball_url": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "zipball_url": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "id": {
27
+ "type": ["null", "integer"]
28
+ },
29
+ "node_id": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "tag_name": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "target_commitish": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "name": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "body": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "draft": {
45
+ "type": ["null", "boolean"]
46
+ },
47
+ "prerelease": {
48
+ "type": ["null", "boolean"]
49
+ },
50
+ "created_at": {
51
+ "type": "string",
52
+ "format": "date-time"
53
+ },
54
+ "published_at": {
55
+ "type": ["null", "string"],
56
+ "format": "date-time"
57
+ },
58
+ "author": {
59
+ "$ref": "user.json"
60
+ },
61
+ "assets": {
62
+ "type": ["null", "array"],
63
+ "items": {
64
+ "type": ["null", "object"],
65
+ "properties": {
66
+ "url": {
67
+ "type": ["null", "string"]
68
+ },
69
+ "browser_download_url": {
70
+ "type": ["null", "string"]
71
+ },
72
+ "id": {
73
+ "type": ["null", "integer"]
74
+ },
75
+ "node_id": {
76
+ "type": ["null", "string"]
77
+ },
78
+ "name": {
79
+ "type": ["null", "string"]
80
+ },
81
+ "label": {
82
+ "type": ["null", "string"]
83
+ },
84
+ "state": {
85
+ "type": ["null", "string"]
86
+ },
87
+ "content_type": {
88
+ "type": ["null", "string"]
89
+ },
90
+ "size": {
91
+ "type": ["null", "integer"]
92
+ },
93
+ "download_count": {
94
+ "type": ["null", "integer"]
95
+ },
96
+ "created_at": {
97
+ "type": "string",
98
+ "format": "date-time"
99
+ },
100
+ "updated_at": {
101
+ "type": "string",
102
+ "format": "date-time"
103
+ },
104
+ "uploader_id": {
105
+ "type": ["null", "integer"]
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "body_html": {
111
+ "type": ["null", "string"]
112
+ },
113
+ "body_text": {
114
+ "type": ["null", "string"]
115
+ },
116
+ "mentions_count": {
117
+ "type": ["null", "integer"]
118
+ },
119
+ "discussion_url": {
120
+ "type": ["null", "string"]
121
+ },
122
+ "reactions": {
123
+ "$ref": "reactions.json"
124
+ }
125
+ }
126
+ }
@@ -0,0 +1,313 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": ["null", "integer"]
7
+ },
8
+ "node_id": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "name": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "full_name": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "owner": {
18
+ "$ref": "user.json"
19
+ },
20
+ "private": {
21
+ "type": ["null", "boolean"]
22
+ },
23
+ "html_url": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "description": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "fork": {
30
+ "type": ["null", "boolean"]
31
+ },
32
+ "url": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "archive_url": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "assignees_url": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "blobs_url": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "branches_url": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "collaborators_url": {
48
+ "type": ["null", "string"]
49
+ },
50
+ "comments_url": {
51
+ "type": ["null", "string"]
52
+ },
53
+ "commits_url": {
54
+ "type": ["null", "string"]
55
+ },
56
+ "compare_url": {
57
+ "type": ["null", "string"]
58
+ },
59
+ "contents_url": {
60
+ "type": ["null", "string"]
61
+ },
62
+ "contributors_url": {
63
+ "type": ["null", "string"]
64
+ },
65
+ "deployments_url": {
66
+ "type": ["null", "string"]
67
+ },
68
+ "downloads_url": {
69
+ "type": ["null", "string"]
70
+ },
71
+ "events_url": {
72
+ "type": ["null", "string"]
73
+ },
74
+ "forks_url": {
75
+ "type": ["null", "string"]
76
+ },
77
+ "git_commits_url": {
78
+ "type": ["null", "string"]
79
+ },
80
+ "git_refs_url": {
81
+ "type": ["null", "string"]
82
+ },
83
+ "git_tags_url": {
84
+ "type": ["null", "string"]
85
+ },
86
+ "git_url": {
87
+ "type": ["null", "string"]
88
+ },
89
+ "issue_comment_url": {
90
+ "type": ["null", "string"]
91
+ },
92
+ "issue_events_url": {
93
+ "type": ["null", "string"]
94
+ },
95
+ "issues_url": {
96
+ "type": ["null", "string"]
97
+ },
98
+ "keys_url": {
99
+ "type": ["null", "string"]
100
+ },
101
+ "labels_url": {
102
+ "type": ["null", "string"]
103
+ },
104
+ "languages_url": {
105
+ "type": ["null", "string"]
106
+ },
107
+ "merges_url": {
108
+ "type": ["null", "string"]
109
+ },
110
+ "milestones_url": {
111
+ "type": ["null", "string"]
112
+ },
113
+ "notifications_url": {
114
+ "type": ["null", "string"]
115
+ },
116
+ "pulls_url": {
117
+ "type": ["null", "string"]
118
+ },
119
+ "releases_url": {
120
+ "type": ["null", "string"]
121
+ },
122
+ "ssh_url": {
123
+ "type": ["null", "string"]
124
+ },
125
+ "stargazers_url": {
126
+ "type": ["null", "string"]
127
+ },
128
+ "statuses_url": {
129
+ "type": ["null", "string"]
130
+ },
131
+ "subscribers_url": {
132
+ "type": ["null", "string"]
133
+ },
134
+ "subscription_url": {
135
+ "type": ["null", "string"]
136
+ },
137
+ "tags_url": {
138
+ "type": ["null", "string"]
139
+ },
140
+ "teams_url": {
141
+ "type": ["null", "string"]
142
+ },
143
+ "trees_url": {
144
+ "type": ["null", "string"]
145
+ },
146
+ "clone_url": {
147
+ "type": ["null", "string"]
148
+ },
149
+ "mirror_url": {
150
+ "type": ["null", "string"]
151
+ },
152
+ "hooks_url": {
153
+ "type": ["null", "string"]
154
+ },
155
+ "svn_url": {
156
+ "type": ["null", "string"]
157
+ },
158
+ "homepage": {
159
+ "type": ["null", "string"]
160
+ },
161
+ "language": {
162
+ "type": ["null", "string"]
163
+ },
164
+ "forks_count": {
165
+ "type": ["null", "integer"]
166
+ },
167
+ "stargazers_count": {
168
+ "type": ["null", "integer"]
169
+ },
170
+ "watchers_count": {
171
+ "type": ["null", "integer"]
172
+ },
173
+ "size": {
174
+ "type": ["null", "integer"]
175
+ },
176
+ "default_branch": {
177
+ "type": ["null", "string"]
178
+ },
179
+ "open_issues_count": {
180
+ "type": ["null", "integer"]
181
+ },
182
+ "is_template": {
183
+ "type": ["null", "boolean"]
184
+ },
185
+ "topics": {
186
+ "type": ["null", "array"],
187
+ "items": {
188
+ "type": ["null", "string"]
189
+ }
190
+ },
191
+ "license": {
192
+ "type": ["null", "object"],
193
+ "properties": {
194
+ "key": {
195
+ "type": ["null", "string"]
196
+ },
197
+ "name": {
198
+ "type": ["null", "string"]
199
+ },
200
+ "url": {
201
+ "type": ["null", "string"]
202
+ },
203
+ "spdx_id": {
204
+ "type": ["null", "string"]
205
+ },
206
+ "node_id": {
207
+ "type": ["null", "string"]
208
+ },
209
+ "html_url": {
210
+ "type": ["null", "string"]
211
+ }
212
+ }
213
+ },
214
+ "has_issues": {
215
+ "type": ["null", "boolean"]
216
+ },
217
+ "has_projects": {
218
+ "type": ["null", "boolean"]
219
+ },
220
+ "has_wiki": {
221
+ "type": ["null", "boolean"]
222
+ },
223
+ "has_pages": {
224
+ "type": ["null", "boolean"]
225
+ },
226
+ "has_downloads": {
227
+ "type": ["null", "boolean"]
228
+ },
229
+ "archived": {
230
+ "type": ["null", "boolean"]
231
+ },
232
+ "disabled": {
233
+ "type": ["null", "boolean"]
234
+ },
235
+ "visibility": {
236
+ "type": ["null", "string"]
237
+ },
238
+ "pushed_at": {
239
+ "type": "string",
240
+ "format": "date-time"
241
+ },
242
+ "created_at": {
243
+ "type": "string",
244
+ "format": "date-time"
245
+ },
246
+ "updated_at": {
247
+ "type": "string",
248
+ "format": "date-time"
249
+ },
250
+ "permissions": {
251
+ "type": ["null", "object"],
252
+ "properties": {
253
+ "admin": {
254
+ "type": ["null", "boolean"]
255
+ },
256
+ "push": {
257
+ "type": ["null", "boolean"]
258
+ },
259
+ "pull": {
260
+ "type": ["null", "boolean"]
261
+ },
262
+ "maintain": {
263
+ "type": ["null", "boolean"]
264
+ },
265
+ "triage": {
266
+ "type": ["null", "boolean"]
267
+ }
268
+ }
269
+ },
270
+ "allow_forking": {
271
+ "type": ["null", "boolean"]
272
+ },
273
+ "forks": {
274
+ "type": ["null", "integer"]
275
+ },
276
+ "has_discussions": {
277
+ "type": ["null", "boolean"]
278
+ },
279
+ "open_issues": {
280
+ "type": ["null", "integer"]
281
+ },
282
+ "organization": {
283
+ "type": ["null", "string"]
284
+ },
285
+ "watchers": {
286
+ "type": ["null", "integer"]
287
+ },
288
+ "web_commit_signoff_required": {
289
+ "type": ["null", "boolean"]
290
+ },
291
+ "security_and_analysis": {
292
+ "type": ["null", "object"],
293
+ "properties": {
294
+ "secret_scanning": {
295
+ "type": ["null", "object"],
296
+ "properties": {
297
+ "status": {
298
+ "type": ["null", "string"]
299
+ }
300
+ }
301
+ },
302
+ "secret_scanning_push_protection": {
303
+ "type": ["null", "object"],
304
+ "properties": {
305
+ "status": {
306
+ "type": ["null", "string"]
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+ }
@@ -0,0 +1,118 @@
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
+ "pull_request_review_id": {
12
+ "type": ["null", "integer"]
13
+ },
14
+ "id": {
15
+ "type": ["null", "integer"]
16
+ },
17
+ "node_id": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "diff_hunk": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "path": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "position": {
27
+ "type": ["null", "integer"]
28
+ },
29
+ "original_position": {
30
+ "type": ["null", "integer"]
31
+ },
32
+ "commit_id": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "original_commit_id": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "in_reply_to_id": {
39
+ "type": ["null", "integer"]
40
+ },
41
+ "user": {
42
+ "$ref": "user.json"
43
+ },
44
+ "body": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "created_at": {
48
+ "type": "string",
49
+ "format": "date-time"
50
+ },
51
+ "updated_at": {
52
+ "type": "string",
53
+ "format": "date-time"
54
+ },
55
+ "html_url": {
56
+ "type": ["null", "string"]
57
+ },
58
+ "pull_request_url": {
59
+ "type": ["null", "string"]
60
+ },
61
+ "author_association": {
62
+ "type": ["null", "string"]
63
+ },
64
+ "_links": {
65
+ "type": ["null", "object"],
66
+ "properties": {
67
+ "self": {
68
+ "type": ["null", "object"],
69
+ "properties": {
70
+ "href": {
71
+ "type": ["null", "string"]
72
+ }
73
+ }
74
+ },
75
+ "html": {
76
+ "type": ["null", "object"],
77
+ "properties": {
78
+ "href": {
79
+ "type": ["null", "string"]
80
+ }
81
+ }
82
+ },
83
+ "pull_request": {
84
+ "type": ["null", "object"],
85
+ "properties": {
86
+ "href": {
87
+ "type": ["null", "string"]
88
+ }
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "start_line": {
94
+ "type": ["null", "integer"]
95
+ },
96
+ "original_start_line": {
97
+ "type": ["null", "integer"]
98
+ },
99
+ "start_side": {
100
+ "type": ["null", "string"]
101
+ },
102
+ "line": {
103
+ "type": ["null", "integer"]
104
+ },
105
+ "original_line": {
106
+ "type": ["null", "integer"]
107
+ },
108
+ "side": {
109
+ "type": ["null", "string"]
110
+ },
111
+ "subject_type": {
112
+ "type": ["null", "string"]
113
+ },
114
+ "reactions": {
115
+ "$ref": "reactions.json"
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,69 @@
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
+ "user": {
15
+ "$ref": "user_graphql.json"
16
+ },
17
+ "body": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "state": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "html_url": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "pull_request_url": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "_links": {
30
+ "type": ["null", "object"],
31
+ "properties": {
32
+ "html": {
33
+ "type": ["null", "object"],
34
+ "properties": {
35
+ "href": {
36
+ "type": ["null", "string"]
37
+ }
38
+ }
39
+ },
40
+ "pull_request": {
41
+ "type": ["null", "object"],
42
+ "properties": {
43
+ "href": {
44
+ "type": ["null", "string"]
45
+ }
46
+ }
47
+ }
48
+ }
49
+ },
50
+ "submitted_at": {
51
+ "type": "string",
52
+ "format": "date-time"
53
+ },
54
+ "created_at": {
55
+ "type": "string",
56
+ "format": "date-time"
57
+ },
58
+ "updated_at": {
59
+ "type": "string",
60
+ "format": "date-time"
61
+ },
62
+ "commit_id": {
63
+ "type": ["null", "string"]
64
+ },
65
+ "author_association": {
66
+ "type": ["null", "string"]
67
+ }
68
+ }
69
+ }