File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -87,4 +87,15 @@ public function addComment($body)
87
87
return Note::fromArray ($ this ->getClient (), $ this , $ data );
88
88
}
89
89
90
+ public function showComments ()
91
+ {
92
+ $ notes = array ();
93
+ $ data = $ this ->api ('issues ' )->showComments ($ this ->project ->id , $ this ->id );
94
+
95
+ foreach ($ data as $ note ) {
96
+ $ notes [] = Note::fromArray ($ this ->getClient (), $ this , $ note );
97
+ }
98
+
99
+ return $ notes ;
100
+ }
90
101
}
Original file line number Diff line number Diff line change @@ -101,6 +101,18 @@ public function addComment($note)
101
101
return Note::fromArray ($ this ->getClient (), $ this , $ data );
102
102
}
103
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
+
104
116
public function isClosed ()
105
117
{
106
118
if (in_array ($ this ->state , array ('closed ' , 'merged ' ))) {
You can’t perform that action at this time.
0 commit comments