v1.2 #3
@ -26,6 +26,10 @@ class Issue extends GiteaRepoData{
|
||||
return $this->request($this->url.'/comments','POST',$args);
|
||||
}
|
||||
|
||||
public function getComments(){
|
||||
return $this->request($this->url.'/comments','GET');
|
||||
}
|
||||
|
||||
public function hasLabel($label){
|
||||
$id=$label->id;
|
||||
foreach($this->labels as $label){
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user