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,144 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-source-github
3
+ Version: 1.5.7
4
+ Summary: Source implementation for Github.
5
+ Author: Airbyte
6
+ Author-email: contact@airbyte.io
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: airbyte-cdk
9
+ Requires-Dist: sgqlc
10
+ Provides-Extra: tests
11
+ Requires-Dist: requests-mock ~=1.9.3 ; extra == 'tests'
12
+ Requires-Dist: pytest-mock ~=3.6.1 ; extra == 'tests'
13
+ Requires-Dist: pytest ~=6.2 ; extra == 'tests'
14
+ Requires-Dist: responses ~=0.23.1 ; extra == 'tests'
15
+ Requires-Dist: freezegun ~=1.2 ; extra == 'tests'
16
+
17
+ # Github Source
18
+
19
+ This is the repository for the Github source connector, written in Python.
20
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/github).
21
+
22
+
23
+ **To iterate on this connector, make sure to complete this prerequisites section.**
24
+
25
+
26
+ From this connector directory, create a virtual environment:
27
+ ```
28
+ python -m venv .venv
29
+ ```
30
+
31
+ This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your
32
+ development environment of choice. To activate it from the terminal, run:
33
+ ```
34
+ source .venv/bin/activate
35
+ pip install -r requirements.txt
36
+ pip install '.[tests]'
37
+ ```
38
+ If you are in an IDE, follow your IDE's instructions to activate the virtualenv.
39
+
40
+ Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is
41
+ used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`.
42
+ If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything
43
+ should work as you expect.
44
+
45
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/github)
46
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_github/spec.json` file.
47
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
48
+ See `integration_tests/sample_config.json` for a sample config file.
49
+
50
+ **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source github test creds`
51
+ and place them into `secrets/config.json`.
52
+
53
+ ```
54
+ python main.py spec
55
+ python main.py check --config secrets/config.json
56
+ python main.py discover --config secrets/config.json
57
+ python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
58
+ ```
59
+
60
+
61
+
62
+
63
+ The Airbyte way of building this connector is to use our `airbyte-ci` tool.
64
+ You can follow install instructions [here](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md#L1).
65
+ Then running the following command will build your connector:
66
+
67
+ ```bash
68
+ airbyte-ci connectors --name=source-github build
69
+ ```
70
+ Once the command is done, you will find your connector image in your local docker registry: `airbyte/source-github:dev`.
71
+
72
+ When contributing on our connector you might need to customize the build process to add a system dependency or set an env var.
73
+ You can customize our build process by adding a `build_customization.py` module to your connector.
74
+ This module should contain a `pre_connector_install` and `post_connector_install` async function that will mutate the base image and the connector container respectively.
75
+ It will be imported at runtime by our build process and the functions will be called if they exist.
76
+
77
+ Here is an example of a `build_customization.py` module:
78
+ ```python
79
+ from __future__ import annotations
80
+
81
+ from typing import TYPE_CHECKING
82
+
83
+ if TYPE_CHECKING:
84
+ from dagger import Container
85
+
86
+
87
+ async def pre_connector_install(base_image_container: Container) -> Container:
88
+ return await base_image_container.with_env_variable("MY_PRE_BUILD_ENV_VAR", "my_pre_build_env_var_value")
89
+
90
+ async def post_connector_install(connector_container: Container) -> Container:
91
+ return await connector_container.with_env_variable("MY_POST_BUILD_ENV_VAR", "my_post_build_env_var_value")
92
+ ```
93
+
94
+ This connector is built using our dynamic built process in `airbyte-ci`.
95
+ The base image used to build it is defined within the metadata.yaml file under the `connectorBuildOptions`.
96
+ The build logic is defined using [Dagger](https://dagger.io/) [here](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/pipelines/builds/python_connectors.py).
97
+ It does not rely on a Dockerfile.
98
+
99
+ If you would like to patch our connector and build your own a simple approach would be to:
100
+
101
+ 1. Create your own Dockerfile based on the latest version of the connector image.
102
+ ```Dockerfile
103
+ FROM airbyte/source-github:latest
104
+
105
+ COPY . ./airbyte/integration_code
106
+ RUN pip install ./airbyte/integration_code
107
+
108
+ ```
109
+ Please use this as an example. This is not optimized.
110
+
111
+ 2. Build your image:
112
+ ```bash
113
+ docker build -t airbyte/source-github:dev .
114
+ docker run airbyte/source-github:dev spec
115
+ ```
116
+ Then run any of the connector commands as follows:
117
+ ```
118
+ docker run --rm airbyte/source-github:dev spec
119
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-github:dev check --config /secrets/config.json
120
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-github:dev discover --config /secrets/config.json
121
+ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-github:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
122
+ ```
123
+
124
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
125
+ ```bash
126
+ airbyte-ci connectors --name=source-github test
127
+ ```
128
+
129
+ Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
130
+ If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
131
+
132
+ All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
133
+ We split dependencies between two groups, dependencies that are:
134
+ * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
135
+ * required for the testing need to go to `TEST_REQUIREMENTS` list
136
+
137
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
138
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-github test`
139
+ 2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
140
+ 3. Make sure the `metadata.yaml` content is up to date.
141
+ 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/github.md`).
142
+ 5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
143
+ 6. Pat yourself on the back for being an awesome contributor.
144
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
@@ -0,0 +1,88 @@
1
+ integration_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ integration_tests/abnormal_state.json,sha256=y8KcPpt_OrNyCI3oIlMNOIavEchdDl4x2hcIhiWDN_c,5789
3
+ integration_tests/acceptance.py,sha256=8eU9iSDbmHyufPvAouJGhPMgPAFTCP8IKIKHLm7u5TE,435
4
+ integration_tests/configured_catalog.json,sha256=rV_ZlX9TzzRiF5D_W8K-2g5zkxPZwIc89r-3Fl-xS8w,12972
5
+ integration_tests/configured_catalog_full_refresh_test.json,sha256=0IScHUkjFyXVtygzpbi8uB2sRCUBlD0v4dr2idnQ2lw,12384
6
+ integration_tests/invalid_config.json,sha256=2Qf61mlb3GGPncBW_KP-icx-9KPn6fDVMpsoN0-X3p8,139
7
+ integration_tests/sample_config.json,sha256=oaMjKF6oIJVIcXzg0iRIw_PCRQ1jBXa5vvoo5b497n0,123
8
+ integration_tests/sample_state.json,sha256=Uk-rg2pglkjGYF3PB5616ASOjUD3pHfQZQp8nAJAuXE,3272
9
+ source_github/__init__.py,sha256=punPc3v0mXEYOun7cbkfM5KUhgjv72B9DgDhI4VtzcQ,1134
10
+ source_github/config_migrations.py,sha256=Dq-x0yoQNLpcO6ZwRJDfd3Mhuk4SSQDjEVfhOpto_Xc,3849
11
+ source_github/constants.py,sha256=Hj3Q4y7OoU-Iff4m9gEC2CjwmWJYXhNbHVNjg8EBLmQ,238
12
+ source_github/github_schema.py,sha256=JHFeNATAjLjB2RvdPJks1JMrCotipLBAOnpikp30oUI,1600314
13
+ source_github/graphql.py,sha256=csp3C9Mgf5MIzShbRlb1DWffZ1qRnZzmXwmfHpfUP5U,11625
14
+ source_github/run.py,sha256=onA-rP2aVhWHvDquKZdR1381CU66rnzqJ7EFMS5dd4Q,407
15
+ source_github/source.py,sha256=ezpU8PjkVPwsNxN5BJYrI4bLNAUwTNkMlo2b0LwFwQs,15567
16
+ source_github/spec.json,sha256=_L8sFYPPMeUTRqXOza0IISyR3c2E5u4aHThKMQA2r4s,7096
17
+ source_github/streams.py,sha256=WFoKCAcIU6D0iD2f9Nww10ZOEA_-vLz-5h76nUdSft8,74739
18
+ source_github/utils.py,sha256=DfAHFjsF8hzDXeSCR6qtfs7W_av6o2BkkEVhtHpWbis,5462
19
+ source_github/schemas/assignees.json,sha256=NBC1_AfEC2CSSdijrrt6m5hBBcdTiWpkZTYxJGCmqJ4,1232
20
+ source_github/schemas/branches.json,sha256=6A4HWJbmPzWCftc2r6qkOsDRQGSQZcXb5AcIrrOYi2M,1015
21
+ source_github/schemas/collaborators.json,sha256=wecCoA5aVQmM3p1hssZIRrRcuvZZKogy61qH0qIyPwo,1584
22
+ source_github/schemas/comments.json,sha256=GpUi1ZWpuer0prYLqbwCvKLPWU687qsgiabqlYAb3og,2191
23
+ source_github/schemas/commit_comment_reactions.json,sha256=OxGmHXvft7upViZReEOmhT1jLJcQv2O0sH9WLMY8rBo,87
24
+ source_github/schemas/commit_comments.json,sha256=4ys_Sq_MqFIY8zrt9TVU-brKJLNnpfi0fcR9zmROmQg,984
25
+ source_github/schemas/commits.json,sha256=atL3DnoKFXeW5AOHbnK29vMm-92EXeomi7JDcBVCKv4,2772
26
+ source_github/schemas/contributor_activity.json,sha256=K06885JTGNa9ECWHR1NaL66fn7lVSjlV8KFDIduNY_I,2348
27
+ source_github/schemas/deployments.json,sha256=kGIXwF0UOQ6kxErJczpKSIb6DlOg76OwI-lak71C-ws,1478
28
+ source_github/schemas/events.json,sha256=NMvo8wwjSwyMppnKCai6wepWRCndIJtt3VWGDQvUJkE,1228
29
+ source_github/schemas/issue_comment_reactions.json,sha256=OxGmHXvft7upViZReEOmhT1jLJcQv2O0sH9WLMY8rBo,87
30
+ source_github/schemas/issue_events.json,sha256=g6p11u4Gkw3gcAKi_9Y1Fojm25pXOKZ3d7CyhGk-Z2c,7690
31
+ source_github/schemas/issue_labels.json,sha256=uRZhZTLByG8pIH5pkaKk-PJVDvgIymp5YMuRz11OzK4,543
32
+ source_github/schemas/issue_milestones.json,sha256=FZsUGAN6VXKZnp0dj8pEO1PWIMqctSW3JVqQCrPW-8w,1168
33
+ source_github/schemas/issue_reactions.json,sha256=ZZvVDcTgI2_2VL6L5WRj6XJ6Jb5lzxL5Rfc3U4Rw6WE,516
34
+ source_github/schemas/issue_timeline_events.json,sha256=5b4t_TDC9pz3_vVcjoqPynZAmad2huf5zaYopBcs0q0,26852
35
+ source_github/schemas/issues.json,sha256=xKBjH2f8-yn15nzH0YWhf3UhmUzgyIQ1EXoSnRBVOMc,6210
36
+ source_github/schemas/organizations.json,sha256=ml4GWlkK7Jtj5qWENDE6RuZXkX8XRX6317W4QfIUM7U,4605
37
+ source_github/schemas/project_cards.json,sha256=-5hHtTlkD3ixf8GhcHJYOW_gXRABKYF372INBEOL7HM,910
38
+ source_github/schemas/project_columns.json,sha256=siNRgD9g0p4RMmIP9gALiP92hoI0hbUVucARg8gMPC4,698
39
+ source_github/schemas/projects.json,sha256=LenLPjed0lfLjncCw8JIfD4GBSlIhioo3wIqcCspzW8,921
40
+ source_github/schemas/projects_v2.json,sha256=hfVTsSWo927HLWyTbFAFX1I_SQ7fydqavTFGNbK1Rk8,1608
41
+ source_github/schemas/pull_request_comment_reactions.json,sha256=7OMdy2lJD3RIjfliCdWXOZZAeYLPDPOC8HPNWnEPLYs,504
42
+ source_github/schemas/pull_request_commits.json,sha256=nT_dxQgjcYbWfOTQ9m3g09iA4OCHN_TYNDPxq4tjsZM,2619
43
+ source_github/schemas/pull_request_stats.json,sha256=Q5Y8pglDQZz1NWQFsKd0wFQjlRRPmfQUguKLqbmIVQc,1717
44
+ source_github/schemas/pull_requests.json,sha256=VxO6GHrl1s037MYvtOi1nGIuW9QoG3Vf8WL7RsDoBLI,7944
45
+ source_github/schemas/releases.json,sha256=giNYrIBROn9lmloB_PwA1t9w6FOF93-cK6fbi6gIaFo,2682
46
+ source_github/schemas/repositories.json,sha256=nSUz6viF5QsntsLsuuzVAk3aQHy_Rs4v7qs2Iyvquq8,6460
47
+ source_github/schemas/review_comments.json,sha256=tR0LLf3MUp_xaZ4lE8NCSHg7019zAta-MhvjHljLBRc,2394
48
+ source_github/schemas/reviews.json,sha256=yKJsTgfs4tTLDKi6v7sLFxIY_n-Z6IBz6_0FT1oiTYY,1374
49
+ source_github/schemas/stargazers.json,sha256=dov682MekgOtalXf3yGXTnU5VyQXm-jn5067FrYBdDw,336
50
+ source_github/schemas/tags.json,sha256=v7Ls_hykDXiKmCH7ImC8dEFBx7qCt20ayKKX_taqZL8,601
51
+ source_github/schemas/team_members.json,sha256=TuH4Ina5BIiZI6hCgh7pF2EIZkxhMNsNQqXXWgscqUk,1273
52
+ source_github/schemas/team_memberships.json,sha256=1GAPJZeTlx9gkNBkllvRrY6bd7-cVA35inwPlOtyf0Y,403
53
+ source_github/schemas/teams.json,sha256=j3oq_9-eYsxDIrMhmZ6SBQKOJGjXSZVCC4ZQIZXxzBg,984
54
+ source_github/schemas/users.json,sha256=xASJmm56AqLYxSCfn5qlPy0xUVJOW8K3gWlwRr4JTXo,1254
55
+ source_github/schemas/workflow_jobs.json,sha256=ORowQYqvJhJE2EEV1jXyQSPCFmtO6NyhJZGTgpXte1Q,2089
56
+ source_github/schemas/workflow_runs.json,sha256=JWK1p1HQI2dDnutF4rd7gPG7Nx1_RJL2VXIka4KQwMQ,10171
57
+ source_github/schemas/workflows.json,sha256=zvtOslS-veNo5_iXmMxMNlY8OOt8DdvTZ3hjtdJbdvY,753
58
+ source_github/schemas/shared/reaction.json,sha256=CqZDoD0tp1dqv_kCYD7RCxGABcZzrHmv7Dx4I9zcJTU,449
59
+ source_github/schemas/shared/reactions.json,sha256=8vo2QDUoqX8U88LJasRw6XtBxWeWqKxMeolXac3sOOQ,616
60
+ source_github/schemas/shared/user.json,sha256=IkeVSNG_2qsRMV2TorrzCIKxZjNXYjG6WVyXcKQ14es,1135
61
+ source_github/schemas/shared/user_graphql.json,sha256=gdTR-fzvWK8403eJYDlOt-7uWqtDvYQDlafOAiiw0PM,453
62
+ source_github/schemas/shared/events/comment.json,sha256=w8xBeZh1t2RDn920iEuIkkny3sPH5GgGD-GKytlCrVk,7387
63
+ source_github/schemas/shared/events/commented.json,sha256=_orCbQap7x_WwFI7mOhNWl7fo8l6yu-wrgJSVhD3jBA,4197
64
+ source_github/schemas/shared/events/committed.json,sha256=3JBZKGgZ3zAjrOwfTDNexmmQKDvlx_TWQTBcxtBSAPY,1443
65
+ source_github/schemas/shared/events/cross_referenced.json,sha256=lwVhZoT3KX7c6Nnuco9bQI6VoiwuXyyNIUjux7cECJY,35782
66
+ source_github/schemas/shared/events/reviewed.json,sha256=DSsE2RDjoqWtn9ZZKj0w5DPSB5WM5jV6TdxhCsSyI6w,2764
67
+ unit_tests/__init__.py,sha256=ZnqYNxHsKCgO38IwB34RQyRMXTs4GTvlRi3ImKnIioo,61
68
+ unit_tests/conftest.py,sha256=SzD4lWLi1xIp00JiAzwL8-4r8Nn5RdPh2a4x0Ezmi4Y,737
69
+ unit_tests/projects_v2_pull_requests_query.json,sha256=TIYBCl-cVkVbwFbLMT4M9bJFpQpr5EuGoi6ufpPdtS0,854
70
+ unit_tests/pull_request_stats_query.json,sha256=GAdAbqkgCTxpGvdJGOk_rf88Z1hwk1HcBJj5XSbtiRk,1202
71
+ unit_tests/test_multiple_token_authenticator.py,sha256=dTorYcfowqwX_b4K7gQ1KGRsXJBeRq2Jp7x6fA0Sa7c,6605
72
+ unit_tests/test_source.py,sha256=lw6iAovpv894_6O6vs9a6IsBz6nVTAmfTeGnCKnO9e0,12447
73
+ unit_tests/test_stream.py,sha256=K9C_Fgf-f7imJR-UG9pS84nOLhWaoVla4DcZVaBH5jw,57819
74
+ unit_tests/utils.py,sha256=X0sgDSMYxBXGfvCbQO3rFEgfL4rxExjVu_FPsLzDDBw,3198
75
+ unit_tests/responses/contributor_activity_response.json,sha256=I7ha5cp6AHSStgs5PT7sczjAXJA8nDNTIMeRBz1C2rA,1186
76
+ unit_tests/responses/graphql_reviews_responses.json,sha256=y6wc8mR8Qglbm_TbfUorcqk6jUzAHpg95AnuQn-mJeE,11725
77
+ unit_tests/responses/issue_timeline_events.json,sha256=myZPxHB3go2pXA-WKVH6-sfs5Siyqo4U0gIEU8bAknU,7800
78
+ unit_tests/responses/issue_timeline_events_response.json,sha256=2wqFrIlhY-Cs7JD2Pclc6ul-ZM80GkTQWa39UWc1ceo,8243
79
+ unit_tests/responses/projects_v2_response.json,sha256=DI_sZ5cjY6GNnR4JNZwmS6-g46xUd-Ri_-K3cbIT6bM,1380
80
+ unit_tests/responses/pull_request_comment_reactions.json,sha256=RIv5DZ2u0k_iMpKth9We3dldVMewJpHeSt3qODXThH0,22304
81
+ unit_tests/responses/pull_request_stats_response.json,sha256=kDftXyjxGnMQSLt71rXmTTh9S2Ih1rtBAXV4Ytgo3w8,9059
82
+ unit_tests/test_migrations/test_config.json,sha256=EO3VwmDU1C76VU2utbBISKIzX7HQYT_L4jutzEct9JQ,256
83
+ unit_tests/test_migrations/test_new_config.json,sha256=gLIR04cyblFxS9JKbL-AM6y2Czuklq1EdzJuzC5_-Qo,270
84
+ airbyte_source_github-1.5.7.dist-info/METADATA,sha256=gWpLSoeMhIAas1MjWUX2VwseRpyLj-KR6XKEyzBmiAg,7566
85
+ airbyte_source_github-1.5.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
86
+ airbyte_source_github-1.5.7.dist-info/entry_points.txt,sha256=PJ6agLA7LwES2PTquhQdOvoWYCfXWQQqvPdyAzVZi8U,56
87
+ airbyte_source_github-1.5.7.dist-info/top_level.txt,sha256=dTXVjjrRCSUCL5rRbxwFIdanxAk9q5mRuBxfuaM9hqI,43
88
+ airbyte_source_github-1.5.7.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ source-github = source_github.run:run
@@ -0,0 +1,3 @@
1
+ integration_tests
2
+ source_github
3
+ unit_tests
File without changes
@@ -0,0 +1,237 @@
1
+ [
2
+ {
3
+ "type": "STREAM",
4
+ "stream": {
5
+ "stream_state": {
6
+ "airbytehq/integration-test": { "updated_at": "2121-06-30T10:22:10Z" }
7
+ },
8
+ "stream_descriptor": { "name": "comments" }
9
+ }
10
+ },
11
+ {
12
+ "type": "STREAM",
13
+ "stream": {
14
+ "stream_state": {
15
+ "airbytehq/integration-test": {
16
+ "55538825": { "created_at": "2121-12-31T23:59:59Z" },
17
+ "55538840": { "created_at": "2121-12-31T23:59:59Z" }
18
+ }
19
+ },
20
+ "stream_descriptor": { "name": "commit_comment_reactions" }
21
+ }
22
+ },
23
+ {
24
+ "type": "STREAM",
25
+ "stream": {
26
+ "stream_state": {
27
+ "airbytehq/integration-test": { "updated_at": "2121-04-30T20:36:17Z" }
28
+ },
29
+ "stream_descriptor": { "name": "commit_comments" }
30
+ }
31
+ },
32
+ {
33
+ "type": "STREAM",
34
+ "stream": {
35
+ "stream_state": {
36
+ "airbytehq/integration-test": {
37
+ "master": { "created_at": "2121-06-30T10:04:41Z" }
38
+ }
39
+ },
40
+ "stream_descriptor": { "name": "commits" }
41
+ }
42
+ },
43
+ {
44
+ "type": "STREAM",
45
+ "stream": {
46
+ "stream_state": {
47
+ "airbytehq/integration-test": { "updated_at": "2121-06-30T10:04:41Z" }
48
+ },
49
+ "stream_descriptor": { "name": "deployments" }
50
+ }
51
+ },
52
+ {
53
+ "type": "STREAM",
54
+ "stream": {
55
+ "stream_state": {
56
+ "airbytehq/integration-test": { "created_at": "2121-06-29T03:44:45Z" }
57
+ },
58
+ "stream_descriptor": { "name": "events" }
59
+ }
60
+ },
61
+ {
62
+ "type": "STREAM",
63
+ "stream": {
64
+ "stream_state": {
65
+ "airbytehq/integration-test": {
66
+ "907296275": { "created_at": "2121-12-31T23:59:59Z" }
67
+ }
68
+ },
69
+ "stream_descriptor": { "name": "issue_comment_reactions" }
70
+ }
71
+ },
72
+ {
73
+ "type": "STREAM",
74
+ "stream": {
75
+ "stream_state": {
76
+ "airbytehq/integration-test": { "created_at": "2121-06-29T01:49:42Z" }
77
+ },
78
+ "stream_descriptor": { "name": "issue_events" }
79
+ }
80
+ },
81
+ {
82
+ "type": "STREAM",
83
+ "stream": {
84
+ "stream_state": {
85
+ "airbytehq/integration-test": { "updated_at": "2121-06-25T22:28:33Z" }
86
+ },
87
+ "stream_descriptor": { "name": "issue_milestones" }
88
+ }
89
+ },
90
+ {
91
+ "type": "STREAM",
92
+ "stream": {
93
+ "stream_state": {
94
+ "airbytehq/integration-test": { "created_at": "2121-12-31T23:59:59Z" }
95
+ },
96
+ "stream_descriptor": { "name": "issue_reactions" }
97
+ }
98
+ },
99
+ {
100
+ "type": "STREAM",
101
+ "stream": {
102
+ "stream_state": {
103
+ "airbytehq/integration-test": { "updated_at": "2121-06-30T06:44:42Z" }
104
+ },
105
+ "stream_descriptor": { "name": "issues" }
106
+ }
107
+ },
108
+ {
109
+ "type": "STREAM",
110
+ "stream": {
111
+ "stream_state": {
112
+ "airbytehq/integration-test": {
113
+ "13167124": { "17807006": { "updated_at": "2121-06-29T02:04:57Z" } }
114
+ }
115
+ },
116
+ "stream_descriptor": { "name": "project_cards" }
117
+ }
118
+ },
119
+ {
120
+ "type": "STREAM",
121
+ "stream": {
122
+ "stream_state": {
123
+ "airbytehq/integration-test": {
124
+ "13167122": { "updated_at": "2121-06-29T02:04:57Z" },
125
+ "13167124": { "updated_at": "2121-06-29T02:04:57Z" }
126
+ }
127
+ },
128
+ "stream_descriptor": { "name": "project_columns" }
129
+ }
130
+ },
131
+ {
132
+ "type": "STREAM",
133
+ "stream": {
134
+ "stream_state": {
135
+ "airbytehq/integration-test": { "updated_at": "2121-06-28T17:24:51Z" }
136
+ },
137
+ "stream_descriptor": { "name": "projects" }
138
+ }
139
+ },
140
+ {
141
+ "type": "STREAM",
142
+ "stream": {
143
+ "stream_state": {
144
+ "airbytehq/integration-test": { "created_at": "2121-12-31T23:59:59Z" }
145
+ },
146
+ "stream_descriptor": { "name": "pull_request_comment_reactions" }
147
+ }
148
+ },
149
+ {
150
+ "type": "STREAM",
151
+ "stream": {
152
+ "stream_state": {
153
+ "airbytehq/integration-test": { "updated_at": "2121-06-29T02:04:57Z" }
154
+ },
155
+ "stream_descriptor": { "name": "pull_request_stats" }
156
+ }
157
+ },
158
+ {
159
+ "type": "STREAM",
160
+ "stream": {
161
+ "stream_state": {
162
+ "airbytehq/integration-test": { "updated_at": "2121-06-28T23:36:35Z" }
163
+ },
164
+ "stream_descriptor": { "name": "pull_requests" }
165
+ }
166
+ },
167
+ {
168
+ "type": "STREAM",
169
+ "stream": {
170
+ "stream_state": {
171
+ "airbytehq/integration-test": { "created_at": "2121-06-23T23:57:07Z" }
172
+ },
173
+ "stream_descriptor": { "name": "releases" }
174
+ }
175
+ },
176
+ {
177
+ "type": "STREAM",
178
+ "stream": {
179
+ "stream_state": { "airbytehq": { "updated_at": "2121-12-31T23:59:59Z" } },
180
+ "stream_descriptor": { "name": "repositories" }
181
+ }
182
+ },
183
+ {
184
+ "type": "STREAM",
185
+ "stream": {
186
+ "stream_state": {
187
+ "airbytehq/integration-test": { "updated_at": "2121-06-23T23:57:07Z" }
188
+ },
189
+ "stream_descriptor": { "name": "review_comments" }
190
+ }
191
+ },
192
+ {
193
+ "type": "STREAM",
194
+ "stream": {
195
+ "stream_state": {
196
+ "airbytehq/integration-test": { "updated_at": "2121-06-29T02:04:57Z" }
197
+ },
198
+ "stream_descriptor": { "name": "reviews" }
199
+ }
200
+ },
201
+ {
202
+ "type": "STREAM",
203
+ "stream": {
204
+ "stream_state": {
205
+ "airbytehq/integration-test": { "starred_at": "2121-06-29T02:04:57Z" }
206
+ },
207
+ "stream_descriptor": { "name": "stargazers" }
208
+ }
209
+ },
210
+ {
211
+ "type": "STREAM",
212
+ "stream": {
213
+ "stream_state": {
214
+ "airbytehq/integration-test": { "updated_at": "2121-12-31T23:59:59Z" }
215
+ },
216
+ "stream_descriptor": { "name": "workflows" }
217
+ }
218
+ },
219
+ {
220
+ "type": "STREAM",
221
+ "stream": {
222
+ "stream_state": {
223
+ "airbytehq/integration-test": { "updated_at": "2121-12-31T23:59:59Z" }
224
+ },
225
+ "stream_descriptor": { "name": "workflow_runs" }
226
+ }
227
+ },
228
+ {
229
+ "type": "STREAM",
230
+ "stream": {
231
+ "stream_state": {
232
+ "airbytehq/integration-test": { "completed_at": "2121-12-31T23:59:59Z" }
233
+ },
234
+ "stream_descriptor": { "name": "workflow_jobs" }
235
+ }
236
+ }
237
+ ]
@@ -0,0 +1,16 @@
1
+ #
2
+ # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
+ #
4
+
5
+
6
+ import pytest
7
+
8
+ pytest_plugins = ("connector_acceptance_test.plugin",)
9
+
10
+
11
+ @pytest.fixture(scope="session", autouse=True)
12
+ def connector_setup():
13
+ """This fixture is a placeholder for external resources that acceptance test might require."""
14
+ # TODO: setup test dependencies if needed. otherwise remove the TODO comments
15
+ yield
16
+ # TODO: clean up test dependencies