airbyte-source-github 2.1.11.dev202602241302__tar.gz → 2.1.12__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.
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/PKG-INFO +1 -1
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/pyproject.toml +1 -1
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/errors_handlers.py +4 -13
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/README.md +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/__init__.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/backoff_strategies.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/config_migrations.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/constants.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/github_schema.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/graphql.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/run.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/assignees.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/branches.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/collaborators.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/comments.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/commit_comment_reactions.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/commit_comments.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/commits.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/contributor_activity.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/deployments.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/events.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_comment_reactions.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_events.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_labels.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_milestones.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_reactions.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issue_timeline_events.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/issues.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/organizations.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/project_cards.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/project_columns.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/projects.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/projects_v2.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/pull_request_comment_reactions.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/pull_request_commits.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/pull_request_stats.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/pull_requests.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/releases.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/repositories.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/review_comments.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/reviews.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/events/comment.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/events/commented.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/events/committed.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/events/cross_referenced.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/events/reviewed.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/reaction.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/reactions.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/user.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/shared/user_graphql.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/stargazers.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/tags.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/team_members.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/team_memberships.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/teams.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/users.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/workflow_jobs.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/workflow_runs.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/schemas/workflows.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/source.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/spec.json +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/streams.py +0 -0
- {airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/utils.py +0 -0
{airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/pyproject.toml
RENAMED
|
@@ -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 = "2.1.
|
|
6
|
+
version = "2.1.12"
|
|
7
7
|
name = "airbyte-source-github"
|
|
8
8
|
description = "Source implementation for GitHub."
|
|
9
9
|
authors = [ "Airbyte <contact@airbyte.io>",]
|
|
@@ -43,17 +43,10 @@ GITHUB_DEFAULT_ERROR_MAPPING = DEFAULT_ERROR_MAPPING | {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
def _safe_json(response: requests.Response) -> Optional[dict]:
|
|
47
|
-
try:
|
|
48
|
-
return response.json()
|
|
49
|
-
except requests.exceptions.JSONDecodeError:
|
|
50
|
-
return None
|
|
51
|
-
|
|
52
|
-
|
|
53
46
|
def is_conflict_with_empty_repository(response_or_exception: Optional[Union[requests.Response, Exception]] = None) -> bool:
|
|
54
47
|
if isinstance(response_or_exception, requests.Response) and response_or_exception.status_code == requests.codes.CONFLICT:
|
|
55
|
-
response_data =
|
|
56
|
-
return response_data.get("message") == "Git Repository is empty."
|
|
48
|
+
response_data = response_or_exception.json()
|
|
49
|
+
return response_data.get("message") == "Git Repository is empty."
|
|
57
50
|
return False
|
|
58
51
|
|
|
59
52
|
|
|
@@ -69,8 +62,7 @@ class GithubStreamABCErrorHandler(HttpStatusErrorHandler):
|
|
|
69
62
|
# https://docs.github.com/en/graphql/overview/resource-limitations
|
|
70
63
|
(
|
|
71
64
|
response_or_exception.headers.get("X-RateLimit-Resource") == "graphql"
|
|
72
|
-
and (
|
|
73
|
-
and self.stream.check_graphql_rate_limited(graphql_json)
|
|
65
|
+
and self.stream.check_graphql_rate_limited(response_or_exception.json())
|
|
74
66
|
)
|
|
75
67
|
# Rate limit HTTP headers
|
|
76
68
|
# https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limit-http-headers
|
|
@@ -150,8 +142,7 @@ class GitHubGraphQLErrorHandler(GithubStreamABCErrorHandler):
|
|
|
150
142
|
constants.DEFAULT_PAGE_SIZE_FOR_LARGE_STREAM if self.stream.large_stream else constants.DEFAULT_PAGE_SIZE
|
|
151
143
|
)
|
|
152
144
|
|
|
153
|
-
|
|
154
|
-
if response_json and response_json.get("errors"):
|
|
145
|
+
if response_or_exception.json().get("errors"):
|
|
155
146
|
return ErrorResolution(
|
|
156
147
|
response_action=ResponseAction.RETRY,
|
|
157
148
|
failure_type=FailureType.transient_error,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/run.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_github-2.1.11.dev202602241302 → airbyte_source_github-2.1.12}/source_github/utils.py
RENAMED
|
File without changes
|