Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

GitHub as source #61

wants to merge 6 commits into from

Conversation

sanjushahgupta
Copy link
Collaborator

Below changes are made in this PR:

  • added gitHub as new source
  • added documentation

@sanjushahgupta sanjushahgupta marked this pull request as ready for review December 2, 2024 16:21

This is a sample command that will copy the data from the GitHub source to DuckDB.

<img alt="athena_img" src="../media/github.png" />
Copy link
Contributor

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?

Comment on lines +145 to +146
elif self.source_scheme == "github":
return GitHubSource()
Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants