Feature/add azure dev ops#125
Open
RalfvandenBurg wants to merge 12 commits into
Open
Conversation
Greptile SummaryAdds comprehensive Azure DevOps integration module mirroring the existing GitHub integration structure. Implements 15 activities across four categories: Git repositories/branches, pull requests, work items, and builds. Key Changes:
Issues Found:
Confidence Score: 3/5
|
| Filename | Overview |
|---|---|
| src/modules/devops/Elsa.DevOps.AzureDevOps/Services/AzureDevOpsConnectionFactory.cs | Connection factory with PAT token storage in dictionary key and no connection disposal |
| src/modules/devops/Elsa.DevOps.AzureDevOps/Activities/AzureDevOpsActivity.cs | Base activity class with proper validation in CanExecuteAsync |
| src/modules/devops/Elsa.DevOps.AzureDevOps/Activities/PullRequests/CreatePullRequest.cs | Creates pull requests with proper validation and ref normalization |
| src/modules/devops/Elsa.DevOps.AzureDevOps/Activities/WorkItems/UpdateWorkItem.cs | Updates work items, creates connection twice when no changes provided |
| src/modules/devops/Elsa.DevOps.AzureDevOps/Features/AzureDevOpsFeature.cs | Feature registration that adds activities and registers connection factory |
Class Diagram
%%{init: {'theme': 'neutral'}}%%
classDiagram
class AzureDevOpsActivity {
+Input~string~ OrganizationUrl
+Input~string~ Token
#CanExecuteAsync() ValueTask~bool~
#GetConnection() VssConnection
}
class AzureDevOpsConnectionFactory {
-Dictionary~string,VssConnection~ _connections
-SemaphoreSlim _semaphore
+GetConnection(string organizationUrl, string token) VssConnection
}
class AzureDevOpsFeature {
+Apply() void
}
class CreatePullRequest {
+Input~string~ Project
+Input~string~ RepositoryName
+Input~string~ SourceBranch
+Input~string~ TargetBranch
+Output~GitPullRequest~ CreatedPullRequest
}
class CreateWorkItem {
+Input~string~ Project
+Input~string~ WorkItemType
+Input~string~ Title
+Output~WorkItem~ CreatedWorkItem
}
class QueueBuild {
+Input~string~ Project
+Input~int~ DefinitionId
+Output~Build~ QueuedBuild
}
class GetBranch {
+Input~string~ Project
+Input~string~ RepositoryName
+Input~string~ BranchName
+Output~GitBranchStats~ Branch
}
AzureDevOpsActivity <|-- CreatePullRequest
AzureDevOpsActivity <|-- CreateWorkItem
AzureDevOpsActivity <|-- QueueBuild
AzureDevOpsActivity <|-- GetBranch
AzureDevOpsActivity ..> AzureDevOpsConnectionFactory : uses
AzureDevOpsFeature ..> AzureDevOpsConnectionFactory : registers
AzureDevOpsFeature ..> AzureDevOpsActivity : discovers activities
Last reviewed commit: 2bc247e
…sConnectionFactory.cs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…nBurg/elsa-extensions into feature/AddAzureDevOps
Namoshek
reviewed
Mar 1, 2026
Namoshek
left a comment
There was a problem hiding this comment.
I've a bit of experience with the Azure DevOps client libraries and the PR looks good to me. The only thing I miss is a few blank lines to make the code more readable, but I guess that's personal preference. 😉
45 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Elsa.DevOps.AzureDevOps module to integrate Azure DevOps with Elsa Workflows. The implementation mirrors the structure and patterns of Elsa.DevOps.GitHub so workflows can call Azure DevOps Git, pull requests, work items, and builds from activities.
Closes #124