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: Replace all github handlers in sweepai/handlers to use their gitlab equivalents. #54

Open bartbot opened 7 months ago

bartbot commented 7 months ago

Details

Replace all github handlers in sweepai/handlers to use their gitlab equivalents -- please use the referenced python-gitlab library.

Reference the following: https://python-gitlab.readthedocs.io/en/stable/api-usage.html

bartbot commented 7 months ago
Sweeping

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

[!TIP] I can email you when I complete this pull request if you set up your email here!


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/bartbot/sweep/blob/c35a28fba99f2a4ca3b77e0fd4175f6ff6b16443/sweepai/handlers/create_pr.py#L1-L355 https://github.com/bartbot/sweep/blob/c35a28fba99f2a4ca3b77e0fd4175f6ff6b16443/sweepai/handlers/on_button_click.py#L1-L116 https://github.com/bartbot/sweep/blob/c35a28fba99f2a4ca3b77e0fd4175f6ff6b16443/sweepai/handlers/on_check_suite.py#L1-L34 https://github.com/bartbot/sweep/blob/c35a28fba99f2a4ca3b77e0fd4175f6ff6b16443/sweepai/handlers/on_comment.py#L1-L35
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://python-gitlab.readthedocs.io/en/stable/api-usage.html: The page "Getting started with the API - python-gitlab v4.3.0" provides a comprehensive guide on using the python-gitlab library to interact with the GitLab API. It covers various topics such as authentication, managers for accessing GitLab resources, handling GitLab objects, base types, lazy objects, pagination, sudo, logging, and attributes in updated objects. The page includes several code snippets demonstrating how to use the python-gitlab library. It covers creating a gitlab.Gitlab object for connecting to GitLab.com or another GitLab instance, different types of tokens for authenticated requests, using configuration files, updating and deleting remote objects, using head() methods for efficient API calls, pagination, and using sudo to act as another user. Overall, the page provides a detailed reference for using the python-gitlab library to interact with the GitLab API, which can be helpful in replacing GitHub handlers with their GitLab equivalents as per the user's problem statement.

Step 2: ⌨️ Coding

Working on it...


🎉 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