Merged
Conversation
bdbd16f to
2cab8dd
Compare
19cca38 to
d38f02c
Compare
1b4eb93 to
137b2a1
Compare
137b2a1 to
ff2312d
Compare
6ab5ac8 to
ff02d70
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for running Python code from a Git repository (in addition to inline code), including authentication, cloning, package installation, and UI integration for branch/file selection.
- Introduces
GitHandlerto clone repositories, list branches, and list Python files - Refactors component entrypoint to handle
SourceEnum.CODEvsSourceEnum.GIT - Adds
PackageInstallerfor dependency installation and updates configuration schema, docs, and Dockerfile to support Git workflows
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/source_git.py | New class to handle Git cloning, SSH/PAT auth, branch/file listing |
| src/source_file.py | Static helper to write inline code to script.py |
| src/package_installer.py | New installer using uv CLI for package installation |
| src/configuration.py | Data models for configuration (SourceEnum, GitConfiguration) |
| src/component.py | Main component logic updated for Git, sync actions, DACite parsing |
| component_config/configSchema.json | Schema extended with Git settings, async branch/file actions |
| README.md | Updated documentation for Git support and examples |
| Dockerfile | Adds known_hosts setup for SSH |
| pyproject.toml | Adds dacite dependency |
| flake8.cfg | Ignores E203,W503 |
Comments suppressed due to low confidence (3)
src/component.py:119
- The docstring for
get_repository_filesincorrectly refers to branches; it should mention files.
Returns a list of branches in the git repository.
src/component.py:105
- The
jsonmodule is not imported in this file, which will cause a NameError. Please addimport jsonat the top.
json.dump(config_data, inp)
Dockerfile:21
- The
${USERNAME}environment variable is not defined. Consider using a known home directory (e.g.,/home/default) or defineUSERNAME.
RUN mkdir /home/${USERNAME}/.ssh
soustruh
commented
Jun 25, 2025
soustruh
commented
Jun 25, 2025
soustruh
commented
Jun 25, 2025
Collaborator
ZdenekSrotyr
left a comment
There was a problem hiding this comment.
Also please remove unused files in repo, please
c9a98db to
0839b9b
Compare
so they can actually be used 😇
6cb6209 to
a30828f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.