+ Create apiGetIssues function.
This commit is contained in:
@@ -326,11 +326,6 @@ class gitlabModel extends model
|
||||
return $allResults;
|
||||
}
|
||||
|
||||
public function apiGetIssues($gitlabID, $projectID)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hooks.
|
||||
*
|
||||
@@ -515,6 +510,13 @@ class gitlabModel extends model
|
||||
return json_decode(commonModel::http($url));
|
||||
}
|
||||
|
||||
public function apiGetIssues($gitlabID, $projectID)
|
||||
{
|
||||
// TODO(dingguodong) not pagination yet.
|
||||
$url = sprintf($this->getApiRoot($gitlabID), "/projects/{$projectID}/issues/{$issueID}");
|
||||
return json_decode(commonModel::http($url));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create issue by api.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user