airbyte-source-github 1.9.2__tar.gz → 2.0.0__tar.gz
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.
Potentially problematic release.
This version of airbyte-source-github might be problematic. Click here for more details.
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/PKG-INFO +1 -1
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/pyproject.toml +2 -2
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/events/comment.json +2 -2
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/events/commented.json +2 -2
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/events/cross_referenced.json +4 -4
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/reactions.json +2 -2
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/streams.py +8 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/README.md +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/__init__.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/backoff_strategies.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/config_migrations.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/constants.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/errors_handlers.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/github_schema.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/graphql.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/run.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/assignees.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/branches.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/collaborators.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/comments.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/commit_comment_reactions.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/commit_comments.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/commits.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/contributor_activity.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/deployments.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/events.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_comment_reactions.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_events.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_labels.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_milestones.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_reactions.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_timeline_events.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issues.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/organizations.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/project_cards.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/project_columns.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/projects.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/projects_v2.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/pull_request_comment_reactions.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/pull_request_commits.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/pull_request_stats.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/pull_requests.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/releases.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/repositories.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/review_comments.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/reviews.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/events/committed.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/events/reviewed.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/reaction.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/user.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/user_graphql.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/stargazers.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/tags.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/team_members.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/team_memberships.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/teams.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/users.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflow_jobs.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflow_runs.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflows.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/source.py +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/spec.json +0 -0
- {airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/utils.py +0 -0
|
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
|
|
|
3
3
|
build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
|
-
version = "
|
|
6
|
+
version = "2.0.0"
|
|
7
7
|
name = "airbyte-source-github"
|
|
8
8
|
description = "Source implementation for GitHub."
|
|
9
9
|
authors = [ "Airbyte <contact@airbyte.io>",]
|
|
@@ -45,4 +45,4 @@ include = [
|
|
|
45
45
|
test-unit-tests.shell = '''
|
|
46
46
|
poetry run pytest --junitxml=build/test-results/pytest-unit-tests-junit.xml --ignore=unit_tests/integration/ unit_tests
|
|
47
47
|
poetry run pytest --junitxml=build/test-results/pytest-unit-integration-tests-junit.xml unit_tests/integration/
|
|
48
|
-
'''
|
|
48
|
+
'''
|
|
@@ -174,8 +174,8 @@
|
|
|
174
174
|
"properties": {
|
|
175
175
|
"url": { "type": "string" },
|
|
176
176
|
"total_count": { "type": "integer" },
|
|
177
|
-
"
|
|
178
|
-
"
|
|
177
|
+
"plus_one": { "type": "integer" },
|
|
178
|
+
"minus_one": { "type": "integer" },
|
|
179
179
|
"laugh": { "type": "integer" },
|
|
180
180
|
"confused": { "type": "integer" },
|
|
181
181
|
"heart": { "type": "integer" },
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"properties": {
|
|
100
100
|
"url": { "type": "string" },
|
|
101
101
|
"total_count": { "type": "integer" },
|
|
102
|
-
"
|
|
103
|
-
"
|
|
102
|
+
"plus_one": { "type": "integer" },
|
|
103
|
+
"minus_one": { "type": "integer" },
|
|
104
104
|
"laugh": { "type": "integer" },
|
|
105
105
|
"confused": { "type": "integer" },
|
|
106
106
|
"heart": { "type": "integer" },
|
|
@@ -752,10 +752,10 @@
|
|
|
752
752
|
"total_count": {
|
|
753
753
|
"type": "integer"
|
|
754
754
|
},
|
|
755
|
-
"
|
|
755
|
+
"plus_one": {
|
|
756
756
|
"type": "integer"
|
|
757
757
|
},
|
|
758
|
-
"
|
|
758
|
+
"minus_one": {
|
|
759
759
|
"type": "integer"
|
|
760
760
|
},
|
|
761
761
|
"laugh": {
|
|
@@ -788,10 +788,10 @@
|
|
|
788
788
|
"total_count": {
|
|
789
789
|
"type": "integer"
|
|
790
790
|
},
|
|
791
|
-
"
|
|
791
|
+
"plus_one": {
|
|
792
792
|
"type": "integer"
|
|
793
793
|
},
|
|
794
|
-
"
|
|
794
|
+
"minus_one": {
|
|
795
795
|
"type": "integer"
|
|
796
796
|
},
|
|
797
797
|
"laugh": {
|
|
@@ -221,6 +221,14 @@ class GithubStream(GithubStreamABC):
|
|
|
221
221
|
|
|
222
222
|
def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]:
|
|
223
223
|
record["repository"] = stream_slice["repository"]
|
|
224
|
+
|
|
225
|
+
if "reactions" in record and record["reactions"]:
|
|
226
|
+
reactions = record["reactions"]
|
|
227
|
+
if "+1" in reactions:
|
|
228
|
+
reactions["plus_one"] = reactions.pop("+1")
|
|
229
|
+
if "-1" in reactions:
|
|
230
|
+
reactions["minus_one"] = reactions.pop("-1")
|
|
231
|
+
|
|
224
232
|
return record
|
|
225
233
|
|
|
226
234
|
def parse_response(
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/backoff_strategies.py
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/config_migrations.py
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/errors_handlers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/assignees.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/branches.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/collaborators.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/comments.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/commits.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/deployments.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/events.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_events.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issue_labels.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/issues.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/organizations.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/project_cards.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/projects.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/projects_v2.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/pull_requests.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/releases.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/repositories.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/reviews.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/shared/user.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/stargazers.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/team_members.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/teams.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/users.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflow_jobs.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflow_runs.json
RENAMED
|
File without changes
|
{airbyte_source_github-1.9.2 → airbyte_source_github-2.0.0}/source_github/schemas/workflows.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|