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

Merged
merged 14 commits into from
Jan 3, 2025
Merged

GitHub as source #61

merged 14 commits into from
Jan 3, 2025

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"

@karakanb karakanb merged commit 9cc7d40 into main Jan 3, 2025
8 checks passed
@karakanb karakanb deleted the feat/github-as-source branch January 3, 2025 20:37
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