Skip to content

Commit f7b9c46

Browse files
authored
Allow getting merge requests which would close an issue
1 parent acc4011 commit f7b9c46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Gitlab/Api/Issues.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,14 @@ public function awardEmoji($project_id, $issue_iid)
213213
{
214214
return $this->get($this->getProjectPath($project_id, 'issues/'.$this->encodePath($issue_iid).'/award_emoji'));
215215
}
216+
217+
/**
218+
* @param int $project_id
219+
* @param int $issue_iid
220+
* @return mixed
221+
*/
222+
public function closedByMergeRequests($project_id, $issue_iid)
223+
{
224+
return $this->get($this->getProjectPath($project_id, 'issues/'.$this->encodePath($issue_iid)).'/closed_by');
225+
}
216226
}

0 commit comments

Comments
 (0)