Skip to content

Commit

Permalink
chore: ci errors solved
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Caspi <[email protected]>
  • Loading branch information
diegocaspi committed Dec 18, 2024
1 parent 0cd3ba9 commit 0a0cba8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions internal/directives/zz_config_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions internal/gitprovider/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"net/url"
"strings"

"github.com/akuity/kargo/internal/git"
"github.com/akuity/kargo/internal/gitprovider"
"k8s.io/utils/ptr"

"github.com/microsoft/azure-devops-go-api/azuredevops/v7"
adogit "github.com/microsoft/azure-devops-go-api/azuredevops/v7/git"
"k8s.io/utils/ptr"

"github.com/akuity/kargo/internal/git"
"github.com/akuity/kargo/internal/gitprovider"
)

const ProviderName = "azure"
Expand Down Expand Up @@ -214,7 +214,7 @@ func parseRepoURL(repoURL string) (string, string, string, error) {
return "", "", "", fmt.Errorf("unsupported host %q", u.Host)
}

// parseModernRepoURL parses a modern Azure DevOps repository URL. example: https://dev.azure.com/org/project/_git/repo
// parseModernRepoURL parses a modern Azure DevOps repository URL.
func parseModernRepoURL(u *url.URL) (string, string, string, error) {
parts := strings.Split(u.Path, "/")
if len(parts) != 5 {
Expand All @@ -223,7 +223,7 @@ func parseModernRepoURL(u *url.URL) (string, string, string, error) {
return parts[1], parts[2], parts[4], nil
}

// parseLegacyRepoURL parses a legacy Azure DevOps repository URL. example: https://org.visualstudio.com/project/_git/repo
// parseLegacyRepoURL parses a legacy Azure DevOps repository URL.
func parseLegacyRepoURL(u *url.URL) (string, string, string, error) {
organization := strings.TrimSuffix(u.Host, ".visualstudio.com")
parts := strings.Split(u.Path, "/")
Expand Down

0 comments on commit 0a0cba8

Please sign in to comment.