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,139 @@
1
+ {
2
+ "title": "Timeline Reviewed Event",
3
+ "description": "Timeline Reviewed Event",
4
+ "type": "object",
5
+ "properties": {
6
+ "event": {
7
+ "type": "string"
8
+ },
9
+ "id": {
10
+ "type": "integer"
11
+ },
12
+ "node_id": {
13
+ "type": "string"
14
+ },
15
+ "user": {
16
+ "title": "Simple User",
17
+ "description": "A GitHub user.",
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": ["string", "null"]
22
+ },
23
+ "email": {
24
+ "type": ["string", "null"]
25
+ },
26
+ "login": {
27
+ "type": "string"
28
+ },
29
+ "id": {
30
+ "type": "integer"
31
+ },
32
+ "node_id": {
33
+ "type": "string"
34
+ },
35
+ "avatar_url": {
36
+ "type": "string"
37
+ },
38
+ "gravatar_id": {
39
+ "type": ["string", "null"]
40
+ },
41
+ "url": {
42
+ "type": "string"
43
+ },
44
+ "html_url": {
45
+ "type": "string"
46
+ },
47
+ "followers_url": {
48
+ "type": "string"
49
+ },
50
+ "following_url": {
51
+ "type": "string"
52
+ },
53
+ "gists_url": {
54
+ "type": "string"
55
+ },
56
+ "starred_url": {
57
+ "type": "string"
58
+ },
59
+ "subscriptions_url": {
60
+ "type": "string"
61
+ },
62
+ "organizations_url": {
63
+ "type": "string"
64
+ },
65
+ "repos_url": {
66
+ "type": "string"
67
+ },
68
+ "events_url": {
69
+ "type": "string"
70
+ },
71
+ "received_events_url": {
72
+ "type": "string"
73
+ },
74
+ "type": {
75
+ "type": "string"
76
+ },
77
+ "site_admin": {
78
+ "type": "boolean"
79
+ },
80
+ "starred_at": {
81
+ "type": "string",
82
+ "format": "date-time"
83
+ }
84
+ }
85
+ },
86
+ "body": {
87
+ "type": ["string", "null"]
88
+ },
89
+ "state": {
90
+ "type": "string"
91
+ },
92
+ "html_url": {
93
+ "type": "string"
94
+ },
95
+ "pull_request_url": {
96
+ "type": "string"
97
+ },
98
+ "_links": {
99
+ "type": "object",
100
+ "properties": {
101
+ "html": {
102
+ "type": "object",
103
+ "properties": {
104
+ "href": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "required": ["href"]
109
+ },
110
+ "pull_request": {
111
+ "type": "object",
112
+ "properties": {
113
+ "href": {
114
+ "type": "string"
115
+ }
116
+ },
117
+ "required": ["href"]
118
+ }
119
+ },
120
+ "required": ["html", "pull_request"]
121
+ },
122
+ "submitted_at": {
123
+ "type": "string",
124
+ "format": "date-time"
125
+ },
126
+ "commit_id": {
127
+ "type": "string"
128
+ },
129
+ "body_html": {
130
+ "type": "string"
131
+ },
132
+ "body_text": {
133
+ "type": "string"
134
+ },
135
+ "author_association": {
136
+ "type": "string"
137
+ }
138
+ }
139
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "type": ["null", "object"],
3
+ "properties": {
4
+ "id": {
5
+ "type": ["null", "integer"]
6
+ },
7
+ "node_id": {
8
+ "type": ["null", "string"]
9
+ },
10
+ "content": {
11
+ "type": ["null", "string"]
12
+ },
13
+ "created_at": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "user": {
18
+ "$ref": "user.json"
19
+ },
20
+ "repository": {
21
+ "type": "string"
22
+ },
23
+ "comment_id": {
24
+ "type": "integer"
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "type": ["null", "object"],
3
+ "properties": {
4
+ "url": {
5
+ "type": ["null", "string"]
6
+ },
7
+ "total_count": {
8
+ "type": ["null", "integer"]
9
+ },
10
+ "+1": {
11
+ "type": ["null", "integer"]
12
+ },
13
+ "-1": {
14
+ "type": ["null", "integer"]
15
+ },
16
+ "laugh": {
17
+ "type": ["null", "integer"]
18
+ },
19
+ "hooray": {
20
+ "type": ["null", "integer"]
21
+ },
22
+ "confused": {
23
+ "type": ["null", "integer"]
24
+ },
25
+ "heart": {
26
+ "type": ["null", "integer"]
27
+ },
28
+ "rocket": {
29
+ "type": ["null", "integer"]
30
+ },
31
+ "eyes": {
32
+ "type": ["null", "integer"]
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "type": ["null", "object"],
3
+ "properties": {
4
+ "login": {
5
+ "type": ["null", "string"]
6
+ },
7
+ "id": {
8
+ "type": ["null", "integer"]
9
+ },
10
+ "node_id": {
11
+ "type": ["null", "string"]
12
+ },
13
+ "avatar_url": {
14
+ "type": ["null", "string"]
15
+ },
16
+ "gravatar_id": {
17
+ "type": ["null", "string"]
18
+ },
19
+ "url": {
20
+ "type": ["null", "string"]
21
+ },
22
+ "html_url": {
23
+ "type": ["null", "string"]
24
+ },
25
+ "followers_url": {
26
+ "type": ["null", "string"]
27
+ },
28
+ "following_url": {
29
+ "type": ["null", "string"]
30
+ },
31
+ "gists_url": {
32
+ "type": ["null", "string"]
33
+ },
34
+ "starred_url": {
35
+ "type": ["null", "string"]
36
+ },
37
+ "subscriptions_url": {
38
+ "type": ["null", "string"]
39
+ },
40
+ "organizations_url": {
41
+ "type": ["null", "string"]
42
+ },
43
+ "repos_url": {
44
+ "type": ["null", "string"]
45
+ },
46
+ "events_url": {
47
+ "type": ["null", "string"]
48
+ },
49
+ "received_events_url": {
50
+ "type": ["null", "string"]
51
+ },
52
+ "type": {
53
+ "type": ["null", "string"]
54
+ },
55
+ "site_admin": {
56
+ "type": ["null", "boolean"]
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "type": ["null", "object"],
3
+ "properties": {
4
+ "login": {
5
+ "type": ["null", "string"]
6
+ },
7
+ "id": {
8
+ "type": ["null", "integer"]
9
+ },
10
+ "node_id": {
11
+ "type": ["null", "string"]
12
+ },
13
+ "avatar_url": {
14
+ "type": ["null", "string"]
15
+ },
16
+ "html_url": {
17
+ "type": ["null", "string"]
18
+ },
19
+ "type": {
20
+ "type": ["null", "string"]
21
+ },
22
+ "site_admin": {
23
+ "type": ["null", "boolean"]
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "user_id": {
9
+ "type": ["null", "integer"]
10
+ },
11
+ "starred_at": {
12
+ "type": "string",
13
+ "format": "date-time"
14
+ },
15
+ "user": {
16
+ "$ref": "user.json"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "name": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "commit": {
12
+ "type": ["null", "object"],
13
+ "properties": {
14
+ "sha": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "url": {
18
+ "type": ["null", "string"]
19
+ }
20
+ }
21
+ },
22
+ "zipball_url": {
23
+ "type": ["null", "string"]
24
+ },
25
+ "tarball_url": {
26
+ "type": ["null", "string"]
27
+ },
28
+ "node_id": {
29
+ "type": ["null", "string"]
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "login": {
6
+ "type": ["null", "string"]
7
+ },
8
+ "id": {
9
+ "type": "integer"
10
+ },
11
+ "node_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "avatar_url": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "gravatar_id": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "url": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "html_url": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "followers_url": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "following_url": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "gists_url": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "starred_url": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "subscriptions_url": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "organizations_url": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "repos_url": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "events_url": {
48
+ "type": ["null", "string"]
49
+ },
50
+ "received_events_url": {
51
+ "type": ["null", "string"]
52
+ },
53
+ "type": {
54
+ "type": ["null", "string"]
55
+ },
56
+ "site_admin": {
57
+ "type": ["null", "boolean"]
58
+ },
59
+ "organization": {
60
+ "type": "string"
61
+ },
62
+ "team_slug": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "state": {
6
+ "type": ["null", "string"]
7
+ },
8
+ "role": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "url": {
12
+ "type": "string"
13
+ },
14
+ "organization": {
15
+ "type": "string"
16
+ },
17
+ "team_slug": {
18
+ "type": "string"
19
+ },
20
+ "username": {
21
+ "type": "string"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "organization": {
6
+ "type": ["null", "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
+ "html_url": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "name": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "slug": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "description": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "privacy": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "notification_setting": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "permission": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "members_url": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "repositories_url": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "parent": {
45
+ "type": ["null", "object"],
46
+ "properties": {},
47
+ "additionalProperties": true
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": ["null", "object"],
4
+ "properties": {
5
+ "organization": {
6
+ "type": ["null", "string"]
7
+ },
8
+ "login": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "id": {
12
+ "type": ["null", "integer"]
13
+ },
14
+ "node_id": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "avatar_url": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "gravatar_id": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "url": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "html_url": {
27
+ "type": ["null", "string"]
28
+ },
29
+ "followers_url": {
30
+ "type": ["null", "string"]
31
+ },
32
+ "following_url": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "gists_url": {
36
+ "type": ["null", "string"]
37
+ },
38
+ "starred_url": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "subscriptions_url": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "organizations_url": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "repos_url": {
48
+ "type": ["null", "string"]
49
+ },
50
+ "events_url": {
51
+ "type": ["null", "string"]
52
+ },
53
+ "received_events_url": {
54
+ "type": ["null", "string"]
55
+ },
56
+ "type": {
57
+ "type": ["null", "string"]
58
+ },
59
+ "site_admin": {
60
+ "type": ["null", "boolean"]
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "integer"
7
+ },
8
+ "run_id": {
9
+ "type": "integer"
10
+ },
11
+ "workflow_name": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "head_branch": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "run_url": {
18
+ "type": "string"
19
+ },
20
+ "run_attempt": {
21
+ "type": "integer"
22
+ },
23
+ "node_id": {
24
+ "type": "string"
25
+ },
26
+ "head_sha": {
27
+ "type": "string"
28
+ },
29
+ "url": {
30
+ "type": "string"
31
+ },
32
+ "html_url": {
33
+ "type": ["null", "string"]
34
+ },
35
+ "status": {
36
+ "type": "string"
37
+ },
38
+ "conclusion": {
39
+ "type": ["null", "string"]
40
+ },
41
+ "created_at": {
42
+ "type": "string",
43
+ "format": "date-time"
44
+ },
45
+ "started_at": {
46
+ "type": "string",
47
+ "format": "date-time"
48
+ },
49
+ "completed_at": {
50
+ "type": ["null", "string"],
51
+ "format": "date-time"
52
+ },
53
+ "name": {
54
+ "type": "string"
55
+ },
56
+ "steps": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "object",
60
+ "properties": {
61
+ "status": {
62
+ "type": "string"
63
+ },
64
+ "conclusion": {
65
+ "type": ["null", "string"]
66
+ },
67
+ "name": {
68
+ "type": "string"
69
+ },
70
+ "number": {
71
+ "type": "integer"
72
+ },
73
+ "started_at": {
74
+ "type": ["null", "string"],
75
+ "format": "date-time"
76
+ },
77
+ "completed_at": {
78
+ "type": ["null", "string"],
79
+ "format": "date-time"
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "check_run_url": {
85
+ "type": "string"
86
+ },
87
+ "labels": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "runner_id": {
94
+ "type": ["integer", "null"]
95
+ },
96
+ "runner_name": {
97
+ "type": ["null", "string"]
98
+ },
99
+ "runner_group_id": {
100
+ "type": ["integer", "null"]
101
+ },
102
+ "runner_group_name": {
103
+ "type": ["null", "string"]
104
+ },
105
+ "repository": {
106
+ "type": "string"
107
+ }
108
+ }
109
+ }