add create issue function
This commit is contained in:
parent
8272f9ac4a
commit
0207c9b4a3
@ -47,4 +47,11 @@ class Repo{
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user