OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[feat] - Add Azure DevOps integration as a Git provider

Open vinisdl opened this issue 8 months ago • 8 comments

  • [ ] This change is worth documenting at https://docs.all-hands.dev/
  • [ ] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality that this introduces.

This PR adds support for Azure DevOps as a Git provider, allowing users to authenticate with Azure DevOps and access their repositories through the OpenHands platform.

  • Added ProviderType.AZUREDEVOPS to service_types.py enum
  • Created azuredevops_service.py implementing GitService protocol
  • Updated provider.py to import and use AzureDevOpsServiceImpl
  • Added Azure DevOps domain to provider_domains dictionary
  • Implemented custom URL construction for Azure DevOps repositories

Git Provider Settings UI

image


Give a summary of what the PR does, explaining any non-trivial design decisions.


Link of any specific issues this addresses.

vinisdl avatar Apr 01 '25 22:04 vinisdl

@openhands-agent fix builds

vinisdl avatar Apr 01 '25 22:04 vinisdl

@vinisdl Sorry, openhands-agent works only on branches from the repo and caller with permissions, it doesn't on external branches (a limitation because it's called from github actions).

An alternative is to set it up and run it on your forked repo, if you wish, or to run it locally (it has a headless entry point). Another alternative may be to use the @OpenHands tag, which works on the company cloud service.

enyst avatar Apr 01 '25 23:04 enyst

I'm very interested in this feature. Need any help?

kentyman23 avatar Apr 18 '25 01:04 kentyman23

Also, does this enable OpenHands to be able to publish Azure DevOps PRs? A quick glance of the code looks like it doesn't, or I missed it.

Edit: Doesn't look like it, as that would need to go in a new openhands/resolver/interfaces/azuredevops.py.

kentyman23 avatar Apr 18 '25 01:04 kentyman23

Hey @kentyman23, I’m moving kinda slow on this since I don’t have much time, but if you want, I can add you to help out with the pull request.

vinisdl avatar Apr 25 '25 19:04 vinisdl

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 26 '25 02:05 github-actions[bot]

I'm looking into something similar here: #8573

kentyman23 avatar May 26 '25 16:05 kentyman23

Hi there folks! I just wanted to check in to see what the general status of this PR is? I know it's a big one but is there plan to eventually continue this?

mamoodi avatar Jun 10 '25 14:06 mamoodi

Hello! @kentyman23 and I have been working on this one, which is a bit more current, so I think we'll probably transition to this one: https://github.com/All-Hands-AI/OpenHands/pull/8573

neubig avatar Jun 23 '25 19:06 neubig

But thanks for the contribution @vinisdl !

neubig avatar Jun 23 '25 19:06 neubig