diff --git a/src/PostFailedTests.php b/src/PostFailedTests.php index d27baa7..2975977 100644 --- a/src/PostFailedTests.php +++ b/src/PostFailedTests.php @@ -70,12 +70,22 @@ final class PostFailedTests{ $issue=$this->repo->getIssues(['q' => $name])[0]??null; // are there any instructions in comments? - $quiet=false; + $quiet=$silent=false; foreach($issue->getComments() as $comment){ if( stripos('@bot quiet',$comment->body)!==false ){ $quiet=true; + $silent=false; + } + if( stripos('@bot silent',$comment->body)!==false ){ + $silent=true; + $quiet=true; + } + if( stripos('@bot normal',$comment->body)!==false ){ + $silent=false; + $quiet=false; } } + if($silent){return;} // if existing issue, is the error the same? if($issue){