-
Notifications
You must be signed in to change notification settings - Fork 67
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
GitHub as source #61
base: main
Are you sure you want to change the base?
GitHub as source #61
Conversation
|
||
This is a sample command that will copy the data from the GitHub source to DuckDB. | ||
|
||
<img alt="athena_img" src="../media/github.png" /> |
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.
this says athena, I guess not?
elif self.source_scheme == "github": | ||
return GitHubSource() |
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 think you need to rebase this
repo = source_fields.get("repo") | ||
if not repo: | ||
raise ValueError( | ||
"repo: name of the repository is required to connect with GitHub" |
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.
"repo: name of the repository is required to connect with GitHub" | |
"repo variable is required to fetch the data for a specific repository from GitHub" |
) | ||
else: | ||
raise ValueError( | ||
"fResource '{table}' is not supported for GitHub source yet, if you are interested in it please create a GitHub issue at https://github.com/bruin-data/ingestr" |
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.
"fResource '{table}' is not supported for GitHub source yet, if you are interested in it please create a GitHub issue at https://github.com/bruin-data/ingestr" | |
f"Resource '{table}' is not supported for GitHub source yet, if you are interested in it please create a GitHub issue at https://github.com/bruin-data/ingestr" |
|
||
URI parameters: | ||
|
||
- `access_token`: Access Token used for authentication with the GitHub API |
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.
does GitHub require access token for public repositories? if not, then I suggest stating that here.
also, if token is not required for public please add an integration test in main_test.py
file for this endpoint.
Below changes are made in this PR: