add comment function
This commit is contained in:
parent
da3d2d2c3b
commit
61066027d1
@ -27,6 +27,11 @@ class Gitea{
|
||||
return $this->request($issue->url,$args,true);
|
||||
}
|
||||
|
||||
public function addComment($issue,$body){
|
||||
$args=['body'=>$body];
|
||||
return $this->request($issue->url.'/comments',$args);
|
||||
}
|
||||
|
||||
public function request($url, $postFields = null, $patch=false){
|
||||
if(substr($url,0,4)!='http'){
|
||||
$url=$this->url.$url;
|
||||
|
Loading…
Reference in New Issue
Block a user