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 component for playground #21

Closed
6 tasks done
yongenaelf opened this issue Aug 2, 2024 · 0 comments · Fixed by #26
Closed
6 tasks done

github component for playground #21

yongenaelf opened this issue Aug 2, 2024 · 0 comments · Fixed by #26
Assignees
Labels
enhancement New feature or request

Comments

@yongenaelf
Copy link
Collaborator

yongenaelf commented Aug 2, 2024

Expected Behavior

Given a github url, display a file tree for the user to choose from.

Specifications

As a user, I would like to provide a github url so that I can pick the files I wish to load into the playground.

Features:

  • parse github url to get the owner and repository name
  • dropdown to choose the branch
  • file tree to choose the root directory to import from
  • callback function that will return the downloaded files

Development Tasks:

  • use github sdk to get repository information
  • use github api to get list of branches
  • use github api to get file tree
  • implement root folder selection interface
  • implement file downloading mechanism
  • implement callback function

Dependencies

None

References

https://github.com/octokit/octokit.js

@yongenaelf yongenaelf self-assigned this Aug 2, 2024
@yongenaelf yongenaelf added the enhancement New feature or request label Aug 2, 2024
@yongenaelf yongenaelf linked a pull request Aug 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant