-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat(gitprovider): add Azure DevOps support and update provider confi… #3128
feat(gitprovider): add Azure DevOps support and update provider confi… #3128
Conversation
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
a6a895a
to
bf03c7f
Compare
go.mod
Outdated
@@ -112,6 +112,7 @@ require ( | |||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect | |||
github.com/lib/pq v1.10.9 // indirect | |||
github.com/mattn/go-runewidth v0.0.9 // indirect | |||
github.com/microsoft/azure-devops-go-api/azuredevops/v7 v7.1.0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something looks off here. This looks as if it should be a direct dependency. You may need to run go mod tidy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
solved. The only weird thing is that it also removed github.com/xanzy/go-gitlab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya... I see and that is strange. I'll take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like main
stopped using github.com/xanzy/go-gitlab
just a few days ago and go mod tidy
should have been run at that time and seems it wasn't.
So when you ran it, it fixed this.
All is well.
…gurations - Introduced Azure DevOps as a supported Git provider in the application. - Updated configuration schemas to include 'azure' in the list of supported providers. - Added Azure-specific provider implementation with functionality for creating and managing pull requests. - Included tests for Azure repository URL parsing. This enhancement allows users to interact with Azure DevOps repositories alongside existing GitHub and GitLab support. Signed-off-by: Diego Caspi <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
…3117) Signed-off-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: Faeka Ansari <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
…kuity#3130) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
…/hack/tools (akuity#3134) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: Faeka Ansari <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: Justin Marquis <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Faeka Ansari <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Faeka Ansari <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
…n /hack/tools in the go-minor group (akuity#3145) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Diego Caspi <[email protected]>
) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Mayursinh Sarvaiya <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
…uity#3129) Signed-off-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Diego Caspi <[email protected]>
089db6e
to
8e3af16
Compare
Whoa... you may want to roll back to ccc05b5 and rebase on main instead of merging main into your branch. It's tough to zero in on the changes here. |
This looks pretty good overall. I don't see any major problems. Once this is all set, I'll give it another once over. |
Signed-off-by: Diego Caspi <[email protected]>
…e error messages - Removed dependency on slices package and replaced it with string comparisons for host suffixes. - Updated error messages for better clarity. - Refactored URL parsing logic to clearly distinguish between modern and legacy Azure DevOps URLs. - Removed unused dependency from go.mod and updated go.sum accordingly. Signed-off-by: Diego Caspi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3128 +/- ##
==========================================
- Coverage 51.27% 51.07% -0.21%
==========================================
Files 285 286 +1
Lines 25706 25855 +149
==========================================
+ Hits 13182 13205 +23
- Misses 11824 11949 +125
- Partials 700 701 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Diego Caspi <[email protected]>
I feel like rebasing to sign off that particular commit is not going to be easy, there are conflicts in a lot of steps of the rebase. Tomorrow I'll do it carefully :) |
@diegocaspi don't bother... you're ok now. It's no longer showing every diff from the 20 odd commits that you merged into your branch from main. All good. |
@diegocaspi code looks solid. I'd normally test drive this as well, but I don't have a repo in ADO readily available to me at the moment. I assume you've see this work end-to-end? |
yes, I ran an end-to-end test with both |
Much appreciated @diegocaspi! |
shoud I write some more unit-tests? I see that the code coverage is under the threshold |
That's mainly for informational purposes. We don't require it to pass. Normally, I would look for more thorough test coverage, but unit testing this can't easily be done without mocking out several ADO API endpoints. A mistake in the mocked out endpoints can result in tests that pass, but shouldn't. This is probably better suited to integration tests, but we'd either need a dedicated ADO repo perpetually available to test against or a way to provision one just-in-time and clean up afterwards. It's something we need to tackle eventually, but we've got to do it for GitHub, GitLab, and a few other external systems as well. I don't want this PR held up while work that out. |
@diegocaspi you may need to sign your commits for this PR |
@fykaa he did. DCO failed because some unsigned commits that were already in We can overlook the DCO check for such a case. |
just tested and everything looks fine |
No outstanding issues. LGTM. Thanks @diegocaspi! |
akuity#3128) Signed-off-by: Diego Caspi <[email protected]> Signed-off-by: Diego Caspi <[email protected]> Signed-off-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Hidde Beydals <[email protected]> Signed-off-by: Faeka Ansari <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Justin Marquis <[email protected]> Signed-off-by: Kent Rancourt <[email protected]> Co-authored-by: Mayursinh Sarvaiya <[email protected]> Co-authored-by: Hidde Beydals <[email protected]> Co-authored-by: Faeka Ansari <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Marquis <[email protected]> Co-authored-by: Kent Rancourt <[email protected]>
…gurations
This enhancement allows users to interact with Azure DevOps repositories alongside existing GitHub and GitLab support.
Closes #3120