Skip to content

Commit 4c934c6

Browse files
quentin-stradutopala
authored andcommitted
Add ability to delete an issue comment (#150)
* Add ability to delete an issue comment * Rename deleteComment to removeComment according to #149
1 parent 25c2991 commit 4c934c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Gitlab/Api/Issues.php

+11
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,15 @@ public function updateComment($project_id, $issue_id, $note_id, $body)
115115
'body' => $body
116116
));
117117
}
118+
119+
/**
120+
* @param int $project_id
121+
* @param int $issue_id
122+
* @param int $note_id
123+
* @return mixed
124+
*/
125+
public function removeComment($project_id, $issue_id, $note_id)
126+
{
127+
return $this->delete($this->getProjectPath($project_id, 'issues/'.$this->encodePath($issue_id).'/notes/'.$this->encodePath($note_id)));
128+
}
118129
}

0 commit comments

Comments
 (0)