forked from kriskbx/gitlab-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssues.php
More file actions
33 lines (29 loc) · 749 Bytes
/
Issues.php
File metadata and controls
33 lines (29 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace kriskbx\gtt\Api;
/**
* Class Issues
* @package kriskbx\gtt\Api
*/
class Issues extends \Gitlab\Api\Issues
{
/**
* Overwriting the GitLab API package showComments function, because it doesn't
* support pagination.
*
* @param int $project_id
* @param int $issue_id
* @param int $page
* @param int $per_page
*
* @return mixed
*/
public function showComments($project_id, $issue_id, $page = 1, $per_page = self::PER_PAGE)
{
$params = [
'page' => $page,
'per_page' => $per_page
];
return $this->get($this->getProjectPath($project_id, 'issues/' . $this->encodePath($issue_id)) . '/notes',
$params);
}
}