getLabels
This commit is contained in:
parent
69bbd8b6a3
commit
795a212810
|
@ -156,7 +156,7 @@ class giteaService
|
||||||
|
|
||||||
$apiurl = $this->url."/orgs/$owner/labels";
|
$apiurl = $this->url."/orgs/$owner/labels";
|
||||||
$response=$this->api("GET",$apiurl,null,$this->session->get("giteatoken"));
|
$response=$this->api("GET",$apiurl,null,$this->session->get("giteatoken"));
|
||||||
if(!$response||$response->code!="200") return false;
|
if(!$response||$response->code!="200") return $label01;
|
||||||
$label02=$response->body;
|
$label02=$response->body;
|
||||||
|
|
||||||
return array_merge($label01, $label02);
|
return array_merge($label01, $label02);
|
||||||
|
|
Loading…
Reference in New Issue