From 5af32ce5e0d8c3cb4989a476b547cdcd7a2f8d8a Mon Sep 17 00:00:00 2001 From: Craig Anderson <1877372+CDA0@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:18:56 +0100 Subject: [PATCH] some updates from PR --- azuredevops/git.go | 2 +- azuredevops/pull_request.go | 2 +- azuredevops/wiki.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/azuredevops/git.go b/azuredevops/git.go index 0fad4ea..9342062 100644 --- a/azuredevops/git.go +++ b/azuredevops/git.go @@ -4,7 +4,7 @@ import ( "github.com/microsoft/azure-devops-go-api/azuredevops/git" ) -// GetPackageVersion gets all GitRepository +// GetFileContent gets content in a file over API. func (a *AzureDevOps) GetFileContent(projectName string, repoName string, version string) (*git.GitItem, error) { client, err := git.NewClient(a.ctx, a.connection) if err != nil { diff --git a/azuredevops/pull_request.go b/azuredevops/pull_request.go index 4fd3f77..46b18ab 100644 --- a/azuredevops/pull_request.go +++ b/azuredevops/pull_request.go @@ -77,7 +77,7 @@ func (a *AzureDevOps) CreatePullRequest(projectName string, repositoryName strin return client.CreatePullRequest(a.ctx, createPullRequestArgs) } -// CompletePullRequest completes a GitPullRequest +// SetPullRequestAutoComplete completes a GitPullRequest func (a *AzureDevOps) SetPullRequestAutoComplete(projectName string, repositoryName string, pullRequestId int, userId *uuid.UUID) error { client, err := git.NewClient(a.ctx, a.connection) if err != nil { diff --git a/azuredevops/wiki.go b/azuredevops/wiki.go index 95c44d4..46abb4f 100644 --- a/azuredevops/wiki.go +++ b/azuredevops/wiki.go @@ -5,6 +5,7 @@ import ( "github.com/microsoft/azure-devops-go-api/azuredevops/wiki" ) +// CreateWikiIfNotExists creates a code wiki if it does not exist. func (a *AzureDevOps) CreateWikiIfNotExists(projectName string, wikiName string, gitEmail string, gitUsername string, adoPat string) (*string, error) { client, err := wiki.NewClient(a.ctx, a.connection) if err != nil {