add create issue function

This commit is contained in:
James 2019-07-30 19:57:34 +01:00
parent 8272f9ac4a
commit 0207c9b4a3

View File

@ -47,4 +47,11 @@ class Repo{
return new Label($this,$data); return new Label($this,$data);
} }
public function createIssue($args){
$url="repos/{$this->user}/{$this->repo}/issues";
$data=$this->client->request($url,'POST',$args);
//$data->url=$url."/".$data->id; // not set by api for some reason (bug?)
return new Issue($this,$data);
}
} }