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

Repository.get_file_content should take a path or a content #76

Open
shrik450 opened this issue Apr 10, 2024 · 0 comments
Open

Repository.get_file_content should take a path or a content #76

shrik450 opened this issue Apr 10, 2024 · 0 comments

Comments

@shrik450
Copy link
Collaborator

Currently, Repository.get_file_content takes a Content object as its first arg. This means that a user would have to use Repository.get_git_content first, filter through based on path, and then feed get_file_content that content object to get the file content. This is unnecessary work, as the endpoint only needs a file path. We should change the first arg to take either a string path or a content object.

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

No branches or pull requests

1 participant