-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source GitHub: Add more streams #5483
Conversation
/test connector=connectors/source-github |
thanks @cjwooo the test only work for forks created from master branch. This PR is ready to review and test? |
@marcosmarxm It is now ready for review. Is it possible for you to share which repository Github Actions run the source acceptance test for the Github Source on? Is it a public repo? |
# Below are full refresh streams | ||
def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: | ||
for stream_slice in super().stream_slices(**kwargs): | ||
pull_requests_stream = PullRequests(authenticator=self.authenticator, repositories=[stream_slice["repository"]], start_date="") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I based this off the Reviews stream. Would it be beneficial for both streams to pass the config's start_date to reduce the number of API calls these streams make?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reduce the number of requests for Pull Refresh Stream, we use caching (vcr
library)
Hello, @cjwooo |
@cjwooo I created a new PR based on yours (to be able to run tests), made a couple of small updates, merged the origin/master branch into cwu/github-org-stream and resolved conflicts, and ran the tests, everything went fine. |
Thanks for doing that @yevhenii-ldv ! |
Merged as #5757 |
What
Adds the following streams:
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes