Skip to content

Commit f4a4742

Browse files
authored
Merge pull request #216 from fbourigault/v4-api-8967
update show issue for v4
2 parents 0bdc25a + 6b86cf0 commit f4a4742

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Gitlab/Api/Issues.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public function all($project_id = null, $page = 1, $per_page = self::PER_PAGE, a
2424

2525
/**
2626
* @param int $project_id
27-
* @param int $issue_id
27+
* @param int $issue_iid
2828
* @return mixed
2929
*/
30-
public function show($project_id, $issue_id)
30+
public function show($project_id, $issue_iid)
3131
{
32-
return $this->get($this->getProjectPath($project_id, 'issues?iid='.$this->encodePath($issue_id)));
32+
return $this->get($this->getProjectPath($project_id, 'issues/'.$this->encodePath($issue_iid)));
3333
}
3434

3535
/**

test/Gitlab/Tests/Api/IssuesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function shouldShowIssue()
7474
$api = $this->getApiMock();
7575
$api->expects($this->once())
7676
->method('get')
77-
->with('projects/1/issues?iid=2')
77+
->with('projects/1/issues/2')
7878
->will($this->returnValue($expectedArray))
7979
;
8080

0 commit comments

Comments
 (0)