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

Add GitLab Support to SWE-agent Environment – Resolves #760 #840

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

Conversation

GokulrajKS
Copy link

Pull Request Title:

Add GitLab Support to SWE-agent – Resolves #760


Description

This pull request introduces support for GitLab repositories and issues in SWE-agent. The changes include the ability to parse and handle GitLab URLs, clone repositories, and retrieve issue details using the GitLab API.


Key Changes

  1. Added python-gitlab as a dependency.
  2. Enhanced repository cloning logic to support GitLab in addition to GitHub.
  3. Added utility functions to handle GitLab-specific API interactions and URL parsing.
  4. Updated swe_env.py to integrate GitLab token-based authentication and issue handling.

Testing

  • Verified backward compatibility with GitHub.
  • Tested GitLab support for cloning repositories and retrieving issue data.

Relevant Issue

Resolves #760: Add Support for Git platforms like GitLab, Gogs, Azure DevOps, etc.


Notes

Future work can extend this implementation to support additional Git platforms like Gogs and Azure DevOps. Feedback is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for git platforms like gitlab, gog, azure devops, ...
1 participant