Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Davidson committed Oct 31, 2023
1 parent 082ac71 commit c965d34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azuredevops/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (a *AzureDevOps) FindPullRequest(projectName string, repositoryName string,
return nil, err
}

if len(*pullRequests) == 0 {
return nil, nil
}

return &(*pullRequests)[0], nil
}

Expand Down

0 comments on commit c965d34

Please sign in to comment.