dont post blank reports

This commit is contained in:
James 2019-09-25 17:58:56 +01:00
parent 994768ca9d
commit 71cffd1614

View File

@ -24,10 +24,12 @@ final class Poster{
$this->process($this->xml); //process xml and upload screenshots $this->process($this->xml); //process xml and upload screenshots
// create the issue // create the issue
$issue=$this->repo->createIssue([ if(trim($this->report)){
'title'=>$title, $issue=$this->repo->createIssue([
'body'=>$this->report 'title'=>$title,
]); 'body'=>$this->report
]);
}
} }