Skip to content

Commit

Permalink
some updates from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
CDA0 committed Oct 24, 2023
1 parent 3d6299b commit 5af32ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azuredevops/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion azuredevops/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions azuredevops/wiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5af32ce

Please sign in to comment.