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
+ "branch": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "created_at": {
12
+ "type": "string",
13
+ "format": "date-time"
14
+ },
15
+ "url": {
16
+ "type": ["null", "string"]
17
+ },
18
+ "sha": {
19
+ "type": ["null", "string"]
20
+ },
21
+ "node_id": {
22
+ "type": ["null", "string"]
23
+ },
24
+ "html_url": {
25
+ "type": ["null", "string"]
26
+ },
27
+ "comments_url": {
28
+ "type": ["null", "string"]
29
+ },
30
+ "commit": {
31
+ "type": ["null", "object"],
32
+ "properties": {
33
+ "author": {
34
+ "type": ["null", "object"],
35
+ "properties": {
36
+ "name": {
37
+ "type": ["null", "string"]
38
+ },
39
+ "email": {
40
+ "type": ["null", "string"]
41
+ },
42
+ "date": {
43
+ "type": "string",
44
+ "format": "date-time"
45
+ }
46
+ }
47
+ },
48
+ "committer": {
49
+ "type": ["null", "object"],
50
+ "properties": {
51
+ "name": {
52
+ "type": ["null", "string"]
53
+ },
54
+ "email": {
55
+ "type": ["null", "string"]
56
+ },
57
+ "date": {
58
+ "type": "string",
59
+ "format": "date-time"
60
+ }
61
+ }
62
+ },
63
+ "message": {
64
+ "type": ["null", "string"]
65
+ },
66
+ "tree": {
67
+ "type": ["null", "object"],
68
+ "properties": {
69
+ "sha": {
70
+ "type": ["null", "string"]
71
+ },
72
+ "url": {
73
+ "type": ["null", "string"]
74
+ }
75
+ }
76
+ },
77
+ "url": {
78
+ "type": ["null", "string"]
79
+ },
80
+ "comment_count": {
81
+ "type": ["null", "integer"]
82
+ },
83
+ "verification": {
84
+ "type": ["null", "object"],
85
+ "properties": {
86
+ "verified": {
87
+ "type": ["null", "boolean"]
88
+ },
89
+ "reason": {
90
+ "type": ["null", "string"]
91
+ },
92
+ "signature": {
93
+ "type": ["null", "string"]
94
+ },
95
+ "payload": {
96
+ "type": ["null", "string"]
97
+ }
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "author": {
103
+ "$ref": "user.json"
104
+ },
105
+ "committer": {
106
+ "$ref": "user.json"
107
+ },
108
+ "parents": {
109
+ "type": ["null", "array"],
110
+ "items": {
111
+ "type": ["null", "object"],
112
+ "properties": {
113
+ "sha": {
114
+ "type": ["null", "string"]
115
+ },
116
+ "url": {
117
+ "type": ["null", "string"]
118
+ },
119
+ "html_url": {
120
+ "type": ["null", "string"]
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "Contributor Activity",
5
+ "properties": {
6
+ "name": {
7
+ "type": ["null", "string"]
8
+ },
9
+ "email": {
10
+ "type": ["string", "null"]
11
+ },
12
+ "login": {
13
+ "type": ["null", "string"]
14
+ },
15
+ "id": {
16
+ "type": ["null", "integer"]
17
+ },
18
+ "node_id": {
19
+ "type": ["null", "string"]
20
+ },
21
+ "avatar_url": {
22
+ "type": ["null", "string"],
23
+ "format": "uri"
24
+ },
25
+ "gravatar_id": {
26
+ "type": ["string", "null"]
27
+ },
28
+ "url": {
29
+ "type": ["null", "string"],
30
+ "format": "uri"
31
+ },
32
+ "html_url": {
33
+ "type": ["null", "string"],
34
+ "format": "uri"
35
+ },
36
+ "followers_url": {
37
+ "type": ["null", "string"],
38
+ "format": "uri"
39
+ },
40
+ "following_url": {
41
+ "type": ["null", "string"]
42
+ },
43
+ "gists_url": {
44
+ "type": ["null", "string"]
45
+ },
46
+ "starred_url": {
47
+ "type": ["null", "string"]
48
+ },
49
+ "subscriptions_url": {
50
+ "type": ["null", "string"],
51
+ "format": "uri"
52
+ },
53
+ "organizations_url": {
54
+ "type": ["null", "string"],
55
+ "format": "uri"
56
+ },
57
+ "repos_url": {
58
+ "type": ["null", "string"],
59
+ "format": "uri"
60
+ },
61
+ "events_url": {
62
+ "type": ["null", "string"]
63
+ },
64
+ "repository": {
65
+ "type": ["null", "string"]
66
+ },
67
+ "received_events_url": {
68
+ "type": ["null", "string"],
69
+ "format": "uri"
70
+ },
71
+ "type": {
72
+ "type": ["null", "string"]
73
+ },
74
+ "site_admin": {
75
+ "type": ["null", "boolean"]
76
+ },
77
+ "starred_at": {
78
+ "type": ["null", "string"],
79
+ "format": "date-time"
80
+ },
81
+ "total": {
82
+ "type": ["null", "integer"]
83
+ },
84
+ "weeks": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "object",
88
+ "properties": {
89
+ "w": {
90
+ "type": ["null", "integer"],
91
+ "description": "Start of the week, given as a Unix timestamp."
92
+ },
93
+ "a": {
94
+ "type": ["null", "integer"],
95
+ "description": "Number of additions"
96
+ },
97
+ "d": {
98
+ "type": ["null", "integer"],
99
+ "description": "Number of deletions"
100
+ },
101
+ "c": {
102
+ "type": ["null", "integer"],
103
+ "description": "Number of commits"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": ["null", "string"]
7
+ },
8
+ "id": {
9
+ "type": ["null", "integer"]
10
+ },
11
+ "node_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "task": {
15
+ "type": ["null", "string"]
16
+ },
17
+ "original_environment": {
18
+ "type": ["null", "string"]
19
+ },
20
+ "environment": {
21
+ "type": ["null", "string"]
22
+ },
23
+ "description": {
24
+ "type": ["null", "string"]
25
+ },
26
+ "created_at": {
27
+ "type": "string",
28
+ "format": "date-time"
29
+ },
30
+ "updated_at": {
31
+ "type": "string",
32
+ "format": "date-time"
33
+ },
34
+ "statuses_url": {
35
+ "type": ["null", "string"]
36
+ },
37
+ "repository_url": {
38
+ "type": ["null", "string"]
39
+ },
40
+ "creator": {
41
+ "$ref": "user.json"
42
+ },
43
+ "sha": {
44
+ "type": ["null", "string"]
45
+ },
46
+ "ref": {
47
+ "type": ["null", "string"]
48
+ },
49
+ "payload": {
50
+ "oneOf": [
51
+ {
52
+ "type": "object",
53
+ "properties": {},
54
+ "additionalProperties": true
55
+ },
56
+ {
57
+ "type": "string"
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ]
63
+ },
64
+ "transient_environment": {
65
+ "type": ["null", "boolean"]
66
+ },
67
+ "production_environment": {
68
+ "type": ["null", "boolean"]
69
+ },
70
+ "performed_via_github_app": {
71
+ "type": ["null", "string"]
72
+ },
73
+ "repository": {
74
+ "type": "string"
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "repository": {
6
+ "type": "string"
7
+ },
8
+ "type": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "public": {
12
+ "type": ["null", "boolean"]
13
+ },
14
+ "payload": {
15
+ "type": ["null", "object"],
16
+ "properties": {}
17
+ },
18
+ "repo": {
19
+ "type": ["null", "object"],
20
+ "properties": {
21
+ "id": {
22
+ "type": ["null", "integer"]
23
+ },
24
+ "name": {
25
+ "type": ["null", "string"]
26
+ },
27
+ "url": {
28
+ "type": ["null", "string"]
29
+ }
30
+ }
31
+ },
32
+ "actor": {
33
+ "$ref": "user.json"
34
+ },
35
+ "org": {
36
+ "type": ["null", "object"],
37
+ "properties": {
38
+ "id": {
39
+ "type": ["null", "integer"]
40
+ },
41
+ "login": {
42
+ "type": ["null", "string"]
43
+ },
44
+ "gravatar_id": {
45
+ "type": ["null", "string"]
46
+ },
47
+ "url": {
48
+ "type": ["null", "string"]
49
+ },
50
+ "avatar_url": {
51
+ "type": ["null", "string"]
52
+ }
53
+ }
54
+ },
55
+ "created_at": {
56
+ "type": "string",
57
+ "format": "date-time"
58
+ },
59
+ "id": {
60
+ "type": ["null", "string"]
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "$ref": "reaction.json"
4
+ }