-
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 workflow_jobs stream #16534
Conversation
…t to method incremetal in unit test to class 'WorkflowJobs';
Hi, thanks for the PR. This PR will be reviewed by one of our community maintainers as part our of Community Maintainer Program. Someone will be assigned shortly, thanks for being patient! |
This PR is related to this issue: #16360 |
/test connector=connectors/github |
/test connector=connectors/source-github
Build FailedTest summary info:
|
@Mainara Thanks for your contribution. It looks like the Basically, it will read the file abnormal state from the json file, and it expects to return zero results because the state value is abnormally huge. Can you add a state value for workflow_jobs? |
/test connector=connectors/source-github |
@YiyangLi we made the required changes, can you please validate it? |
/test connector=connectors/source-github
Build PassedTest summary info:
|
/publish connector=connectors/source-github
if you have connectors that successfully published but failed definition generation, follow step 4 here |
/publish connector=connectors/source-github auto-bump-version=false |
@sajarin We verify that the image of the new version has already been published: airbyte/source-github:0.3.0, and the error is precisely because he tried to publish again this version. What can we do with this situation? |
hey @sajarin can we please merge this PR? looks like it's completed. |
Should be good to go @davydov-d. Thanks for the PR @Mainara and @py-paulo and thanks for the review @YiyangLi! |
* feat(workflow-jobs)!: new class 'WorkflowJobs' to get job informations from Github; * feat(workflow-jobs)!: unit test to new class 'WorkflowJobs'; * feat(test_stream/test_stream_workflow_jobs_read_incremental)!: support to method incremetal in unit test to class 'WorkflowJobs'; * feat(test_workflow): unit test incremental and full refresh to class 'WorkflowJobs'; * docs: updated github docs * docs: updated github docs * docs: updated github.md * docs: updated github.md * fix: add workflow_jobs in abnormal tests, use 'start date' in source and unit test; * fix: add workflow_jobs in 'abnormal_state.json' and 'sample_state.json' for integration tests; Co-authored-by: Paulo Roberto <paulo.rb.beserra@gmail.com> Co-authored-by: Paulo Roberto <71179739+py-paulo@users.noreply.github.com>
* feat(workflow-jobs)!: new class 'WorkflowJobs' to get job informations from Github; * feat(workflow-jobs)!: unit test to new class 'WorkflowJobs'; * feat(test_stream/test_stream_workflow_jobs_read_incremental)!: support to method incremetal in unit test to class 'WorkflowJobs'; * feat(test_workflow): unit test incremental and full refresh to class 'WorkflowJobs'; * docs: updated github docs * docs: updated github docs * docs: updated github.md * docs: updated github.md * fix: add workflow_jobs in abnormal tests, use 'start date' in source and unit test; * fix: add workflow_jobs in 'abnormal_state.json' and 'sample_state.json' for integration tests; Co-authored-by: Paulo Roberto <paulo.rb.beserra@gmail.com> Co-authored-by: Paulo Roberto <71179739+py-paulo@users.noreply.github.com>
What
This PR adds a new stream for github source:
workflow_jobs
How
Used the endpoint: https://docs.github.com/pt/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run to lists jobs for a workflow run and create a stream.
Recommended reading order
x.java
y.python
User Impact
There is no breakchanges, just a new stream was added.
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleTests
Unit
airbyte-integrations/connectors/source-github/unit_tests/test_stream.py::test_stream_workflow_jobs_read_incremental ✓
airbyte-integrations/connectors/source-github/unit_tests/test_stream.py::test_stream_workflow_jobs_full_refresh ✓