v1.2 #3

Manually merged
jhodges merged 25 commits from develop into master 2019-09-07 08:53:26 +01:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 47d54d63f7 - Show all commits

View File

@ -26,6 +26,10 @@ class Issue extends GiteaRepoData{
return $this->request($this->url.'/comments','POST',$args); return $this->request($this->url.'/comments','POST',$args);
} }
public function getComments(){
return $this->request($this->url.'/comments','GET');
}
public function hasLabel($label){ public function hasLabel($label){
$id=$label->id; $id=$label->id;
foreach($this->labels as $label){ foreach($this->labels as $label){

View File

@ -58,6 +58,11 @@ class Repo{
$data=$this->client->request($label->url,'DELETE'); $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){ public function createIssue($args){
$url="repos/{$this->user}/{$this->repo}/issues"; $url="repos/{$this->user}/{$this->repo}/issues";
$data=$this->client->request($url,'POST',$args); $data=$this->client->request($url,'POST',$args);