Update GetPullRequest function

This commit is contained in:
MaksimZhukov
2020-08-24 19:59:55 +03:00
parent 5e417400d9
commit 606411ff6f
2 changed files with 5 additions and 4 deletions

View File

@@ -85,8 +85,7 @@ Write-Host "Push branch: $BranchName"
Git-PushBranch -Name $BranchName -Force $true
$gitHubApi = Get-GitHubApi -RepositoryFullName $RepositoryFullName -AccessToken $AccessToken
$repositoryOwner = $RepositoryFullName.Split('/')[0]
$pullRequest = $gitHubApi.GetPullRequest($BranchName, $repositoryOwner)
$pullRequest = $gitHubApi.GetPullRequest($BranchName)
if ($pullRequest.Count -gt 0) {
Write-Host "Update pull request"