airbyte-source-github 1.6.3__py3-none-any.whl → 1.6.5__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-github
3
- Version: 1.6.3
4
- Summary: Source implementation for Github.
3
+ Version: 1.6.5
4
+ Summary: Source implementation for GitHub.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
7
7
  Author: Airbyte
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
- Requires-Dist: airbyte-cdk (>=0.62.1,<0.63.0)
15
+ Requires-Dist: airbyte-cdk (>=0.68.4,<0.69.0)
16
16
  Requires-Dist: sgqlc (==16.3)
17
17
  Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/github
18
18
  Project-URL: Repository, https://github.com/airbytehq/airbyte
@@ -54,9 +54,9 @@ source_github/schemas/workflow_runs.json,sha256=JWK1p1HQI2dDnutF4rd7gPG7Nx1_RJL2
54
54
  source_github/schemas/workflows.json,sha256=zvtOslS-veNo5_iXmMxMNlY8OOt8DdvTZ3hjtdJbdvY,753
55
55
  source_github/source.py,sha256=MSAwf6DCNMhu6Pu6ADPR7EfOIYYDnYf8bnx1LHG6LY4,15612
56
56
  source_github/spec.json,sha256=_L8sFYPPMeUTRqXOza0IISyR3c2E5u4aHThKMQA2r4s,7096
57
- source_github/streams.py,sha256=kpE6FAdkT9w3Uqh3A8RHryeju0uU0LHfWYDcY8Zr8F8,74813
57
+ source_github/streams.py,sha256=M-N-JOmz5AixLvu2aAmrkG5yhg20ShdbvPl-sngu3kM,75191
58
58
  source_github/utils.py,sha256=DfAHFjsF8hzDXeSCR6qtfs7W_av6o2BkkEVhtHpWbis,5462
59
- airbyte_source_github-1.6.3.dist-info/METADATA,sha256=op4r7NN6Qe3Sm8yWIbVz3Do_JhoqdpyjAaXxPW4dEVQ,5238
60
- airbyte_source_github-1.6.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
61
- airbyte_source_github-1.6.3.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
62
- airbyte_source_github-1.6.3.dist-info/RECORD,,
59
+ airbyte_source_github-1.6.5.dist-info/METADATA,sha256=C0YFkcxJsHgkOFvsd5f02D4ta4DHZyldNA1YI673MWw,5238
60
+ airbyte_source_github-1.6.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
61
+ airbyte_source_github-1.6.5.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
62
+ airbyte_source_github-1.6.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.8.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
source_github/streams.py CHANGED
@@ -15,6 +15,7 @@ from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrate
15
15
  from airbyte_cdk.sources.streams.http import HttpStream
16
16
  from airbyte_cdk.sources.streams.http.exceptions import DefaultBackoffException
17
17
  from airbyte_cdk.utils import AirbyteTracedException
18
+ from airbyte_protocol.models import FailureType
18
19
  from requests.exceptions import HTTPError
19
20
 
20
21
  from . import constants
@@ -216,8 +217,11 @@ class GithubStreamABC(HttpStream, ABC):
216
217
 
217
218
  self.logger.warning(error_msg)
218
219
  except GitHubAPILimitException as e:
219
- message = f"Stream: `{self.name}`, slice: `{stream_slice}`. Limits for all provided tokens are reached, please try again later"
220
- raise AirbyteTracedException(message) from e
220
+ internal_message = (
221
+ f"Stream: `{self.name}`, slice: `{stream_slice}`. Limits for all provided tokens are reached, please try again later"
222
+ )
223
+ message = "Rate Limits for all provided tokens are reached. For more information please refer to documentation: https://docs.airbyte.com/integrations/sources/github#limitations--troubleshooting"
224
+ raise AirbyteTracedException(internal_message=internal_message, message=message, failure_type=FailureType.config_error) from e
221
225
 
222
226
 
223
227
  class GithubStream(GithubStreamABC):