bartbot / sweep

Sweep: AI-powered Junior Developer for small features and bug fixes.
https://sweep.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

Sweep: In sweepai/utils/github_utils.py, modify class ClonedRepo to use ssh_url_to_repo in order to clone a project #56

Open bartbot opened 7 months ago

bartbot commented 7 months ago

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

sweep-ai[bot] commented 7 months ago
Sweeping

✨ Track Sweep's progress on our progress dashboard!


0%
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 25fa85f205)

[!TIP] I'll email you at gptaas.bootstrap@gmail.com when I complete this pull request!


Actions (click)


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.


Step 1: 🔎 Searching

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


🎉 Latest improvements to Sweep:


💡 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