Skip to content

Commit

Permalink
Added asure get clone http url
Browse files Browse the repository at this point in the history
  • Loading branch information
shm12 committed Jun 9, 2022
1 parent 19ff5d0 commit 02f02f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azureparser/v1/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (az *AzureURL) GetOwnerName() string { return az.owner }
func (az *AzureURL) GetRepoName() string { return az.repo }
func (az *AzureURL) GetPath() string { return az.path }
func (az *AzureURL) GetToken() string { return az.token }
func (az *AzureURL) GetHttpCloneURL() string {
return fmt.Sprintf("https://%s@%s/%s/%s/_git/%s", az.GetOwnerName(), az.GetHostName(), az.GetOwnerName(), az.GetProjectName(), az.GetRepoName())
}

func (az *AzureURL) SetOwnerName(o string) { az.owner = o }
func (az *AzureURL) SetProjectName(project string) { az.project = project }
Expand Down

0 comments on commit 02f02f0

Please sign in to comment.