princeton-nlp / SWE-agent

SWE-agent takes a GitHub issue and tries to automatically fix it, using GPT-4, or your LM of choice. It solves 12.47% of bugs in the SWE-bench evaluation set and takes just 1 minute to run.
https://princeton-nlp.github.io/SWE-agent/
MIT License
11.85k stars 1.18k forks source link

Integration of Azure DevOps datapath #199

Open fleroyener opened 2 months ago

fleroyener commented 2 months ago

Describe the feature

Add an automatic datapath to use SWE-agent on Azure Devops repos.

Steps to tests :

  1. Set AZURE_DEVOPS_TOKEN to Personal Access Token (PAT) in keys.cfg AZURE_DEVOPS_TOKEN=$AZURE_DEVOPS_PAT
  2. Run following command:
python run.py --model_name azure:gpt4 \
  --data_path https://dev.azure.com/ORGANIZATION/PROJECT/_workitems/edit/WORK_ITEM_ID/ \
  --az_repo REPO_NAME \
  --config_file config/default_from_url.yaml

REPO_NAME: the repo name only (must be in same project) ex: 'SWE-agent' data_path: Work item URL

Potential Solutions

I will create a PR

klieret commented 2 months ago

Hi @fleroyener . Thanks for the request and the PR, it looks like a lot of work went into this. I'm currently in the process of doing some refactoring to run on local repositories (see #43), so expect some merge conflicts in #200.

I also need to discuss with the team how general we want to be.

Working with the local repository should fit all use cases (including yours, especially because yours won't support the --open-pr mechanic or similar yet, so there's not too much difference from working locally). So I'm not yet sure if we can merge #200 or when.

fleroyener commented 2 months ago

Hi @klieret, understood. I'm waiting too for local repository feature, i agree this will fit all use case. I will watch this feature and if help is needed so i can contribute.

I'm watching your PR right now 👍