airbyte-source-github 1.9.2__py3-none-any.whl → 2.0.0__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.

Potentially problematic release.


This version of airbyte-source-github might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-github
3
- Version: 1.9.2
3
+ Version: 2.0.0
4
4
  Summary: Source implementation for GitHub.
5
5
  Home-page: https://airbyte.com
6
6
  License: ELv2
@@ -36,13 +36,13 @@ source_github/schemas/releases.json,sha256=MnoP0oSioKLmXvo6JyuqCoesIOFhtcRli7j6u
36
36
  source_github/schemas/repositories.json,sha256=WpC5ZjoycnHUP5DNz8ImEXROYAel8DGRkBN10W1mQ2w,13319
37
37
  source_github/schemas/review_comments.json,sha256=HVH3OE-x_wYVvg0Qxn6rzXOwAGEk0y3De8_VLCgE3mA,4905
38
38
  source_github/schemas/reviews.json,sha256=OPqo9Dz6slRGojamq8pBMKKRZgz96kDRkYiUJjJQH_E,2731
39
- source_github/schemas/shared/events/comment.json,sha256=w8xBeZh1t2RDn920iEuIkkny3sPH5GgGD-GKytlCrVk,7387
40
- source_github/schemas/shared/events/commented.json,sha256=_orCbQap7x_WwFI7mOhNWl7fo8l6yu-wrgJSVhD3jBA,4197
39
+ source_github/schemas/shared/events/comment.json,sha256=6dcatpi1gitgcR_JscPllyGGoSb8Pgce5OS9vh1HKP4,7400
40
+ source_github/schemas/shared/events/commented.json,sha256=3NSVfCdaLHloZ6JSev47B0VORqEF7aRz6QmLv-ylls0,4210
41
41
  source_github/schemas/shared/events/committed.json,sha256=3JBZKGgZ3zAjrOwfTDNexmmQKDvlx_TWQTBcxtBSAPY,1443
42
- source_github/schemas/shared/events/cross_referenced.json,sha256=GWJAp9xIB_Sbg_K8T3la2EcWk3h9vJ6A6WsMjPLn3dw,36914
42
+ source_github/schemas/shared/events/cross_referenced.json,sha256=OIO30YZxIO4INDMBbJUmJOQkK2yRc3PqJULU-w9MnR4,36940
43
43
  source_github/schemas/shared/events/reviewed.json,sha256=DSsE2RDjoqWtn9ZZKj0w5DPSB5WM5jV6TdxhCsSyI6w,2764
44
44
  source_github/schemas/shared/reaction.json,sha256=CqZDoD0tp1dqv_kCYD7RCxGABcZzrHmv7Dx4I9zcJTU,449
45
- source_github/schemas/shared/reactions.json,sha256=8vo2QDUoqX8U88LJasRw6XtBxWeWqKxMeolXac3sOOQ,616
45
+ source_github/schemas/shared/reactions.json,sha256=0WHitNNCAqUaX1YPQmSatWmt3LADU3QYJuPo25KOdXs,629
46
46
  source_github/schemas/shared/user.json,sha256=IkeVSNG_2qsRMV2TorrzCIKxZjNXYjG6WVyXcKQ14es,1135
47
47
  source_github/schemas/shared/user_graphql.json,sha256=gdTR-fzvWK8403eJYDlOt-7uWqtDvYQDlafOAiiw0PM,453
48
48
  source_github/schemas/stargazers.json,sha256=ksTLyWxv9p1Zz-h1CsdyJIGil3_9xwzuRMAOpAjzJqw,630
@@ -56,9 +56,9 @@ source_github/schemas/workflow_runs.json,sha256=XDmIsjtzka-ItEonImD3ZATZjxRNkbFo
56
56
  source_github/schemas/workflows.json,sha256=gSNw8WZaVKbX4AL97PbjZHzvxcOltXqv9Ao1RNQOFXM,1470
57
57
  source_github/source.py,sha256=rY85d7X_StM0_GYIRYwnvoGQcsbNA_ZtdRnNJdh9-lk,14588
58
58
  source_github/spec.json,sha256=7LOQm01fP_RvPF-HifhNPJ7i0AxT2LTNPaLAA3uOfNY,7443
59
- source_github/streams.py,sha256=uvCHATVyObHCz76tuknNqPETuGlyUdXGsa1YZc7B4JI,78285
59
+ source_github/streams.py,sha256=OusqYGwY9W6Qqraklh_fQhK7BErbonqvd9T45oFhAMQ,78578
60
60
  source_github/utils.py,sha256=1mKZzLEaDe0m8BTw8Y-MxCXrJr1bZfaLPeSUbPN3vyQ,7243
61
- airbyte_source_github-1.9.2.dist-info/METADATA,sha256=QaL6-iGKf0f8eNyZbi3USeQnbtsWnDiaC2FTYEE7G_4,5196
62
- airbyte_source_github-1.9.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
63
- airbyte_source_github-1.9.2.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
64
- airbyte_source_github-1.9.2.dist-info/RECORD,,
61
+ airbyte_source_github-2.0.0.dist-info/METADATA,sha256=bLTAHwsKu5MytzBF6owGTDUKajHfBjotZaZ1MvFPRY4,5196
62
+ airbyte_source_github-2.0.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
63
+ airbyte_source_github-2.0.0.dist-info/entry_points.txt,sha256=gYhqVrTAZvMwuYByg0b_-o115yUFLLcfNxMrLZmiW9k,55
64
+ airbyte_source_github-2.0.0.dist-info/RECORD,,
@@ -174,8 +174,8 @@
174
174
  "properties": {
175
175
  "url": { "type": "string" },
176
176
  "total_count": { "type": "integer" },
177
- "+1": { "type": "integer" },
178
- "-1": { "type": "integer" },
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
- "+1": { "type": "integer" },
103
- "-1": { "type": "integer" },
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
- "+1": {
755
+ "plus_one": {
756
756
  "type": "integer"
757
757
  },
758
- "-1": {
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
- "+1": {
791
+ "plus_one": {
792
792
  "type": "integer"
793
793
  },
794
- "-1": {
794
+ "minus_one": {
795
795
  "type": "integer"
796
796
  },
797
797
  "laugh": {
@@ -7,10 +7,10 @@
7
7
  "total_count": {
8
8
  "type": ["null", "integer"]
9
9
  },
10
- "+1": {
10
+ "plus_one": {
11
11
  "type": ["null", "integer"]
12
12
  },
13
- "-1": {
13
+ "minus_one": {
14
14
  "type": ["null", "integer"]
15
15
  },
16
16
  "laugh": {
source_github/streams.py CHANGED
@@ -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(