add selenium url to test results
This commit is contained in:
parent
495d4e0d26
commit
e4c9d97697
@ -16,7 +16,7 @@ final class Poster{
|
||||
$this->xml = simplexml_load_file($xml_path);
|
||||
}
|
||||
|
||||
public function post($url, $user, $pass, $repoUser, $repo){
|
||||
public function post($url, $user, $pass, $repoUser, $repo, $title='Test Results'){
|
||||
// open connection and repo
|
||||
$this->client=new Client($url, $user, $pass, true);
|
||||
$this->repo=$this->client->getRepo($repoUser, $repo);
|
||||
@ -25,7 +25,7 @@ final class Poster{
|
||||
|
||||
// create the issue
|
||||
$issue=$this->repo->createIssue([
|
||||
'title'=>'Test Results',
|
||||
'title'=>$title,
|
||||
'body'=>$this->report
|
||||
]);
|
||||
|
||||
|
@ -16,7 +16,8 @@ $poster->post(
|
||||
getenv('GiteaUser'),
|
||||
getenv('GiteaPass'),
|
||||
getenv('GiteaRepoUser'),
|
||||
getenv('GiteaRepo')
|
||||
getenv('GiteaRepo'),
|
||||
'Test Results '.getenv('SeleniumBrowserUrl')
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user