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

feat: add GitFile Component #5458

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

Conversation

raphaelchristi
Copy link
Contributor

This pull request introduces a new GitFileComponent that allows users to analyze Git repositories and retrieve the content of selected files from specified branches. The component provides the following features:

  • Repository URL input for connecting to Git repositories
  • Branch selection dropdown that dynamically fetches available branches
  • File selection interface to choose specific files from the repository
  • File content retrieval functionality with binary file detection
  • Error handling for various Git operations

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Dec 26, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 26, 2024
@raphaelchristi raphaelchristi force-pushed the feature/git-file-component branch from 744298e to 57f6ce0 Compare December 26, 2024 17:46
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 26, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 26, 2024
@raphaelchristi raphaelchristi changed the title feat: add GitFileComponent feat: add GitFile Component Dec 26, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 26, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Please take a look at the other Git component to check an example on how to use anyio.Path

- Replace pathlib.Path with anyio.Path
- Convert file operations to async (open, exists, stat, rglob)
- Update file traversal to use async pattern
- Keep async context manager for cleanup
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants