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.
- airbyte_source_github-1.5.7.dist-info/METADATA +144 -0
- airbyte_source_github-1.5.7.dist-info/RECORD +88 -0
- airbyte_source_github-1.5.7.dist-info/WHEEL +5 -0
- airbyte_source_github-1.5.7.dist-info/entry_points.txt +2 -0
- airbyte_source_github-1.5.7.dist-info/top_level.txt +3 -0
- integration_tests/__init__.py +0 -0
- integration_tests/abnormal_state.json +237 -0
- integration_tests/acceptance.py +16 -0
- integration_tests/configured_catalog.json +435 -0
- integration_tests/configured_catalog_full_refresh_test.json +415 -0
- integration_tests/invalid_config.json +5 -0
- integration_tests/sample_config.json +5 -0
- integration_tests/sample_state.json +137 -0
- source_github/__init__.py +27 -0
- source_github/config_migrations.py +106 -0
- source_github/constants.py +9 -0
- source_github/github_schema.py +41034 -0
- source_github/graphql.py +327 -0
- source_github/run.py +17 -0
- source_github/schemas/assignees.json +63 -0
- source_github/schemas/branches.json +48 -0
- source_github/schemas/collaborators.json +80 -0
- source_github/schemas/comments.json +104 -0
- source_github/schemas/commit_comment_reactions.json +4 -0
- source_github/schemas/commit_comments.json +53 -0
- source_github/schemas/commits.json +126 -0
- source_github/schemas/contributor_activity.json +109 -0
- source_github/schemas/deployments.json +77 -0
- source_github/schemas/events.json +63 -0
- source_github/schemas/issue_comment_reactions.json +4 -0
- source_github/schemas/issue_events.json +335 -0
- source_github/schemas/issue_labels.json +30 -0
- source_github/schemas/issue_milestones.json +61 -0
- source_github/schemas/issue_reactions.json +28 -0
- source_github/schemas/issue_timeline_events.json +1056 -0
- source_github/schemas/issues.json +281 -0
- source_github/schemas/organizations.json +197 -0
- source_github/schemas/project_cards.json +50 -0
- source_github/schemas/project_columns.json +38 -0
- source_github/schemas/projects.json +50 -0
- source_github/schemas/projects_v2.json +80 -0
- source_github/schemas/pull_request_comment_reactions.json +28 -0
- source_github/schemas/pull_request_commits.json +122 -0
- source_github/schemas/pull_request_stats.json +84 -0
- source_github/schemas/pull_requests.json +363 -0
- source_github/schemas/releases.json +126 -0
- source_github/schemas/repositories.json +313 -0
- source_github/schemas/review_comments.json +118 -0
- source_github/schemas/reviews.json +69 -0
- source_github/schemas/shared/events/comment.json +188 -0
- source_github/schemas/shared/events/commented.json +118 -0
- source_github/schemas/shared/events/committed.json +56 -0
- source_github/schemas/shared/events/cross_referenced.json +784 -0
- source_github/schemas/shared/events/reviewed.json +139 -0
- source_github/schemas/shared/reaction.json +27 -0
- source_github/schemas/shared/reactions.json +35 -0
- source_github/schemas/shared/user.json +59 -0
- source_github/schemas/shared/user_graphql.json +26 -0
- source_github/schemas/stargazers.json +19 -0
- source_github/schemas/tags.json +32 -0
- source_github/schemas/team_members.json +66 -0
- source_github/schemas/team_memberships.json +24 -0
- source_github/schemas/teams.json +50 -0
- source_github/schemas/users.json +63 -0
- source_github/schemas/workflow_jobs.json +109 -0
- source_github/schemas/workflow_runs.json +449 -0
- source_github/schemas/workflows.json +41 -0
- source_github/source.py +339 -0
- source_github/spec.json +179 -0
- source_github/streams.py +1678 -0
- source_github/utils.py +152 -0
- unit_tests/__init__.py +3 -0
- unit_tests/conftest.py +29 -0
- unit_tests/projects_v2_pull_requests_query.json +3 -0
- unit_tests/pull_request_stats_query.json +3 -0
- unit_tests/responses/contributor_activity_response.json +33 -0
- unit_tests/responses/graphql_reviews_responses.json +405 -0
- unit_tests/responses/issue_timeline_events.json +166 -0
- unit_tests/responses/issue_timeline_events_response.json +170 -0
- unit_tests/responses/projects_v2_response.json +45 -0
- unit_tests/responses/pull_request_comment_reactions.json +744 -0
- unit_tests/responses/pull_request_stats_response.json +317 -0
- unit_tests/test_migrations/test_config.json +8 -0
- unit_tests/test_migrations/test_new_config.json +8 -0
- unit_tests/test_multiple_token_authenticator.py +160 -0
- unit_tests/test_source.py +326 -0
- unit_tests/test_stream.py +1471 -0
- unit_tests/utils.py +78 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Timeline Comment Event",
|
|
3
|
+
"description": "Timeline Comment Event",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"event": { "type": "string" },
|
|
7
|
+
"actor": {
|
|
8
|
+
"title": "Simple User",
|
|
9
|
+
"description": "A GitHub user.",
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"name": { "type": ["string", "null"] },
|
|
13
|
+
"email": { "type": ["string", "null"] },
|
|
14
|
+
"login": { "type": "string" },
|
|
15
|
+
"id": { "type": "integer" },
|
|
16
|
+
"node_id": { "type": "string" },
|
|
17
|
+
"avatar_url": { "type": "string" },
|
|
18
|
+
"gravatar_id": { "type": ["string", "null"] },
|
|
19
|
+
"url": { "type": "string" },
|
|
20
|
+
"html_url": { "type": "string" },
|
|
21
|
+
"followers_url": { "type": "string" },
|
|
22
|
+
"following_url": { "type": "string" },
|
|
23
|
+
"gists_url": { "type": "string" },
|
|
24
|
+
"starred_url": { "type": "string" },
|
|
25
|
+
"subscriptions_url": { "type": "string" },
|
|
26
|
+
"organizations_url": { "type": "string" },
|
|
27
|
+
"repos_url": { "type": "string" },
|
|
28
|
+
"events_url": { "type": "string" },
|
|
29
|
+
"received_events_url": { "type": "string" },
|
|
30
|
+
"type": { "type": "string" },
|
|
31
|
+
"site_admin": { "type": "boolean" },
|
|
32
|
+
"starred_at": { "type": "string", "format": "date-time" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"id": {
|
|
36
|
+
"description": "Unique identifier of the issue comment",
|
|
37
|
+
"type": "integer"
|
|
38
|
+
},
|
|
39
|
+
"node_id": { "type": "string" },
|
|
40
|
+
"url": { "description": "URL for the issue comment", "type": "string" },
|
|
41
|
+
"body": {
|
|
42
|
+
"description": "Contents of the issue comment",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"body_text": { "type": "string" },
|
|
46
|
+
"body_html": { "type": "string" },
|
|
47
|
+
"html_url": { "type": "string" },
|
|
48
|
+
"user": {
|
|
49
|
+
"title": "Simple User",
|
|
50
|
+
"description": "A GitHub user.",
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"name": { "type": ["string", "null"] },
|
|
54
|
+
"email": { "type": ["string", "null"] },
|
|
55
|
+
"login": { "type": "string" },
|
|
56
|
+
"id": { "type": "integer" },
|
|
57
|
+
"node_id": { "type": "string" },
|
|
58
|
+
"avatar_url": { "type": "string" },
|
|
59
|
+
"gravatar_id": { "type": ["string", "null"] },
|
|
60
|
+
"url": { "type": "string" },
|
|
61
|
+
"html_url": { "type": "string" },
|
|
62
|
+
"followers_url": { "type": "string" },
|
|
63
|
+
"following_url": { "type": "string" },
|
|
64
|
+
"gists_url": { "type": "string" },
|
|
65
|
+
"starred_url": { "type": "string" },
|
|
66
|
+
"subscriptions_url": { "type": "string" },
|
|
67
|
+
"organizations_url": { "type": "string" },
|
|
68
|
+
"repos_url": { "type": "string" },
|
|
69
|
+
"events_url": { "type": "string" },
|
|
70
|
+
"received_events_url": { "type": "string" },
|
|
71
|
+
"type": { "type": "string" },
|
|
72
|
+
"site_admin": { "type": "boolean" },
|
|
73
|
+
"starred_at": { "type": "string", "format": "date-time" }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
77
|
+
"updated_at": { "type": "string", "format": "date-time" },
|
|
78
|
+
"issue_url": { "type": "string" },
|
|
79
|
+
"author_association": { "type": "string" },
|
|
80
|
+
"performed_via_github_app": {
|
|
81
|
+
"anyOf": [
|
|
82
|
+
{
|
|
83
|
+
"type": "null"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"title": "GitHub app",
|
|
87
|
+
"description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"id": {
|
|
91
|
+
"description": "Unique identifier of the GitHub app",
|
|
92
|
+
"type": "integer"
|
|
93
|
+
},
|
|
94
|
+
"slug": {
|
|
95
|
+
"description": "The slug name of the GitHub app",
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"node_id": { "type": "string" },
|
|
99
|
+
"owner": {
|
|
100
|
+
"anyOf": [
|
|
101
|
+
{
|
|
102
|
+
"type": "null"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"title": "Simple User",
|
|
106
|
+
"description": "A GitHub user.",
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"name": { "type": ["string", "null"] },
|
|
110
|
+
"email": { "type": ["string", "null"] },
|
|
111
|
+
"login": { "type": "string" },
|
|
112
|
+
"id": { "type": "integer" },
|
|
113
|
+
"node_id": { "type": "string" },
|
|
114
|
+
"avatar_url": { "type": "string" },
|
|
115
|
+
"gravatar_id": { "type": ["string", "null"] },
|
|
116
|
+
"url": { "type": "string" },
|
|
117
|
+
"html_url": { "type": "string" },
|
|
118
|
+
"followers_url": { "type": "string" },
|
|
119
|
+
"following_url": { "type": "string" },
|
|
120
|
+
"gists_url": { "type": "string" },
|
|
121
|
+
"starred_url": { "type": "string" },
|
|
122
|
+
"subscriptions_url": { "type": "string" },
|
|
123
|
+
"organizations_url": { "type": "string" },
|
|
124
|
+
"repos_url": { "type": "string" },
|
|
125
|
+
"events_url": { "type": "string" },
|
|
126
|
+
"received_events_url": { "type": "string" },
|
|
127
|
+
"type": { "type": "string" },
|
|
128
|
+
"site_admin": { "type": "boolean" },
|
|
129
|
+
"starred_at": { "type": "string", "format": "date-time" }
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"name": {
|
|
135
|
+
"description": "The name of the GitHub app",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"description": { "type": ["string", "null"] },
|
|
139
|
+
"external_url": { "type": "string" },
|
|
140
|
+
"html_url": { "type": "string" },
|
|
141
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
142
|
+
"updated_at": { "type": "string", "format": "date-time" },
|
|
143
|
+
"permissions": {
|
|
144
|
+
"description": "The set of permissions for the GitHub app",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"issues": { "type": "string" },
|
|
148
|
+
"checks": { "type": "string" },
|
|
149
|
+
"metadata": { "type": "string" },
|
|
150
|
+
"contents": { "type": "string" },
|
|
151
|
+
"deployments": { "type": "string" }
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"events": {
|
|
155
|
+
"description": "The list of events for the GitHub app",
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": { "type": "string" }
|
|
158
|
+
},
|
|
159
|
+
"installations_count": {
|
|
160
|
+
"description": "The number of installations associated with the GitHub app",
|
|
161
|
+
"type": "integer"
|
|
162
|
+
},
|
|
163
|
+
"client_id": { "type": "string" },
|
|
164
|
+
"client_secret": { "type": "string" },
|
|
165
|
+
"webhook_secret": { "type": ["string", "null"] },
|
|
166
|
+
"pem": { "type": "string" }
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"reactions": {
|
|
172
|
+
"title": "Reaction Rollup",
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"url": { "type": "string" },
|
|
176
|
+
"total_count": { "type": "integer" },
|
|
177
|
+
"+1": { "type": "integer" },
|
|
178
|
+
"-1": { "type": "integer" },
|
|
179
|
+
"laugh": { "type": "integer" },
|
|
180
|
+
"confused": { "type": "integer" },
|
|
181
|
+
"heart": { "type": "integer" },
|
|
182
|
+
"hooray": { "type": "integer" },
|
|
183
|
+
"eyes": { "type": "integer" },
|
|
184
|
+
"rocket": { "type": "integer" }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Timeline Line Commented Event",
|
|
3
|
+
"description": "Timeline Line Commented Event",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"event": { "type": "string" },
|
|
7
|
+
"node_id": { "type": "string" },
|
|
8
|
+
"comments": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"title": "Pull Request Review Comment",
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"url": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"pull_request_review_id": {
|
|
18
|
+
"type": ["integer", "null"]
|
|
19
|
+
},
|
|
20
|
+
"id": { "type": "integer" },
|
|
21
|
+
"node_id": { "type": "string" },
|
|
22
|
+
"diff_hunk": { "type": "string" },
|
|
23
|
+
"path": { "type": "string" },
|
|
24
|
+
"position": { "type": "integer" },
|
|
25
|
+
"original_position": { "type": "integer" },
|
|
26
|
+
"commit_id": { "type": "string" },
|
|
27
|
+
"original_commit_id": { "type": "string" },
|
|
28
|
+
"in_reply_to_id": { "type": "integer" },
|
|
29
|
+
"user": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": { "type": ["string", "null"] },
|
|
33
|
+
"email": { "type": ["string", "null"] },
|
|
34
|
+
"login": { "type": "string" },
|
|
35
|
+
"id": { "type": "integer" },
|
|
36
|
+
"node_id": { "type": "string" },
|
|
37
|
+
"avatar_url": { "type": "string" },
|
|
38
|
+
"gravatar_id": { "type": ["string", "null"] },
|
|
39
|
+
"url": { "type": "string" },
|
|
40
|
+
"html_url": { "type": "string" },
|
|
41
|
+
"followers_url": { "type": "string" },
|
|
42
|
+
"following_url": { "type": "string" },
|
|
43
|
+
"gists_url": { "type": "string" },
|
|
44
|
+
"starred_url": { "type": "string" },
|
|
45
|
+
"subscriptions_url": { "type": "string" },
|
|
46
|
+
"organizations_url": { "type": "string" },
|
|
47
|
+
"repos_url": { "type": "string" },
|
|
48
|
+
"events_url": { "type": "string" },
|
|
49
|
+
"received_events_url": { "type": "string" },
|
|
50
|
+
"type": { "type": "string" },
|
|
51
|
+
"site_admin": { "type": "boolean" },
|
|
52
|
+
"starred_at": { "type": "string", "format": "date-time" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"body": { "type": "string" },
|
|
56
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
57
|
+
"updated_at": { "type": "string", "format": "date-time" },
|
|
58
|
+
"html_url": { "type": "string" },
|
|
59
|
+
"pull_request_url": { "type": "string" },
|
|
60
|
+
"author_association": { "type": "string" },
|
|
61
|
+
"_links": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"self": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"href": { "type": "string" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"html": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"href": { "type": "string" }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"pull_request": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"href": { "type": "string" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"start_line": {
|
|
85
|
+
"type": ["integer", "null"]
|
|
86
|
+
},
|
|
87
|
+
"original_start_line": {
|
|
88
|
+
"type": ["integer", "null"]
|
|
89
|
+
},
|
|
90
|
+
"start_side": {
|
|
91
|
+
"type": ["string", "null"]
|
|
92
|
+
},
|
|
93
|
+
"line": { "type": "integer" },
|
|
94
|
+
"original_line": { "type": "integer" },
|
|
95
|
+
"side": { "type": "string" },
|
|
96
|
+
"subject_type": { "type": "string" },
|
|
97
|
+
"reactions": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"url": { "type": "string" },
|
|
101
|
+
"total_count": { "type": "integer" },
|
|
102
|
+
"+1": { "type": "integer" },
|
|
103
|
+
"-1": { "type": "integer" },
|
|
104
|
+
"laugh": { "type": "integer" },
|
|
105
|
+
"confused": { "type": "integer" },
|
|
106
|
+
"heart": { "type": "integer" },
|
|
107
|
+
"hooray": { "type": "integer" },
|
|
108
|
+
"eyes": { "type": "integer" },
|
|
109
|
+
"rocket": { "type": "integer" }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"body_html": { "type": "string" },
|
|
113
|
+
"body_text": { "type": "string" }
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Timeline Committed Event",
|
|
3
|
+
"description": "Timeline Committed Event",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"event": { "type": "string" },
|
|
7
|
+
"sha": { "type": "string" },
|
|
8
|
+
"node_id": { "type": "string" },
|
|
9
|
+
"url": { "type": "string" },
|
|
10
|
+
"author": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"date": { "format": "date-time", "type": "string" },
|
|
14
|
+
"email": { "type": "string" },
|
|
15
|
+
"name": { "type": "string" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"committer": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"date": { "format": "date-time", "type": "string" },
|
|
22
|
+
"email": { "type": "string" },
|
|
23
|
+
"name": { "type": "string" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"message": { "type": "string" },
|
|
27
|
+
"tree": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"sha": { "type": "string" },
|
|
31
|
+
"url": { "type": "string" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"parents": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"sha": { "type": "string" },
|
|
40
|
+
"url": { "type": "string" },
|
|
41
|
+
"html_url": { "type": "string" }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"verification": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"verified": { "type": "boolean" },
|
|
49
|
+
"reason": { "type": "string" },
|
|
50
|
+
"signature": { "type": ["string", "null"] },
|
|
51
|
+
"payload": { "type": ["string", "null"] }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"html_url": { "type": "string" }
|
|
55
|
+
}
|
|
56
|
+
}
|