support for comments

This commit is contained in:
James
2019-09-05 16:27:23 +01:00
parent 5959b1ffe5
commit 47d54d63f7
2 changed files with 9 additions and 0 deletions

View File

@@ -58,6 +58,11 @@ class Repo{
$data=$this->client->request($label->url,'DELETE');
}
public function deleteComment($comment){
$url="repos/{$this->user}/{$this->repo}/issues/comments/{$comment->id}";
$data=$this->client->request($url,'DELETE');
}
public function createIssue($args){
$url="repos/{$this->user}/{$this->repo}/issues";
$data=$this->client->request($url,'POST',$args);