We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0a6a9 commit 00ac4c7Copy full SHA for 00ac4c7
lib/Gitlab/Model/MergeRequest.php
@@ -101,6 +101,18 @@ public function addComment($note)
101
return Note::fromArray($this->getClient(), $this, $data);
102
}
103
104
+ public function showComments()
105
+ {
106
+ $notes = array();
107
+ $data = $this->api('mr')->showComments($this->project->id, $this->id);
108
+
109
+ foreach ($data as $note) {
110
+ $notes[] = Note::fromArray($this->getClient(), $this, $note);
111
+ }
112
113
+ return $notes;
114
115
116
public function isClosed()
117
{
118
if (in_array($this->state, array('closed', 'merged'))) {
0 commit comments