Skip to content

Commit

Permalink
Fix logic and only send GH comment if issues were found
Browse files Browse the repository at this point in the history
  • Loading branch information
devblackops committed Dec 29, 2018
1 parent 8a0741e commit d072367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyze/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Write-Output $comment

# Send comment back to PR if any errors were found
$ghEvent = Get-Content -Path $env:GITHUB_EVENT_PATH | ConvertFrom-Json
if ($errors.Count -gt 0) {
if ($errors -gt 0) {
$params = @{
Uri = $ghEvent.pull_request.'_links'.comments.href
Method = 'Post'
Expand Down

0 comments on commit d072367

Please sign in to comment.