Open bartbot opened 7 months ago
25fa85f205
)[!TIP] I'll email you at gptaas.bootstrap@gmail.com when I complete this pull request!
I am currently looking into this ticket! I will update the progress of the ticket in this comment. I am currently searching through your code, looking for relevant snippets.
I'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository. You can monitor the progress using the progress dashboard
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
Details
Modify class ClonedRepo to use the git URI to clone a project agnostic of Git provider.
Here is a code example of using the git url via ssh_url_to_repo in order to clone a project.
import subprocess
project = gl.projects.create(data) # or gl.projects.get(project_id) print(project.attributes) # displays all the attributes git_url = project.ssh_url_to_repo subprocess.call(['git', 'clone', git_url])
Reference documentation for Python-GitLab Projects API (equivalent to GitHub Repo): https://python-gitlab.readthedocs.io/en/stable/gl_objects/projects.html