diff --git a/Handle-PullRequestComment.ps1 b/Handle-PullRequestComment.ps1 index 0367dbf..519efc2 100644 --- a/Handle-PullRequestComment.ps1 +++ b/Handle-PullRequestComment.ps1 @@ -1,7 +1,7 @@ param( [Parameter(Mandatory=$true)] [string] $teamCityToken, [Parameter(Mandatory=$true)] [string] $branch, - [Parameter] [bool] $web + [Parameter] [string] $web ) $scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent @@ -11,7 +11,7 @@ Write-Output "Starting tests in $branch" & $scriptDir/Run-TeamCityBuild.ps1 -token $teamCityToken -branch $branch -buildId "LU_FullTests" & $scriptDir/Run-TeamCityBuild.ps1 -token $teamCityToken -branch $branch -buildId "LU_ReleaseBuild" -if ($web) +if ($web -eq "true") { Write-Host "Running web tests" & $scriptDir/Run-TeamCityBuild.ps1 -token $teamCityToken -branch $branch -buildId "LU_Tests_WebTests"