@@ -105,7 +105,7 @@ public function __construct(Project $project, $id = null, Client $client = null)
105
105
*/
106
106
public function show ()
107
107
{
108
- $ data = $ this ->client ->mergeRequests ()->show ($ this ->project ->id , $ this ->id );
108
+ $ data = $ this ->client ->mergeRequests ()->show ($ this ->project ->id , $ this ->iid );
109
109
110
110
return static ::fromArray ($ this ->getClient (), $ this ->project , $ data );
111
111
}
@@ -116,7 +116,7 @@ public function show()
116
116
*/
117
117
public function update (array $ params )
118
118
{
119
- $ data = $ this ->client ->mergeRequests ()->update ($ this ->project ->id , $ this ->id , $ params );
119
+ $ data = $ this ->client ->mergeRequests ()->update ($ this ->project ->id , $ this ->iid , $ params );
120
120
121
121
return static ::fromArray ($ this ->getClient (), $ this ->project , $ data );
122
122
}
@@ -160,7 +160,7 @@ public function open()
160
160
*/
161
161
public function merge ($ message = null )
162
162
{
163
- $ data = $ this ->client ->mergeRequests ()->merge ($ this ->project ->id , $ this ->id , array (
163
+ $ data = $ this ->client ->mergeRequests ()->merge ($ this ->project ->id , $ this ->iid , array (
164
164
'merge_commit_message ' => $ message
165
165
));
166
166
@@ -183,7 +183,7 @@ public function merged()
183
183
*/
184
184
public function addComment ($ comment )
185
185
{
186
- $ data = $ this ->client ->mergeRequests ()->addComment ($ this ->project ->id , $ this ->id , $ comment );
186
+ $ data = $ this ->client ->mergeRequests ()->addComment ($ this ->project ->id , $ this ->iid , $ comment );
187
187
188
188
return Note::fromArray ($ this ->getClient (), $ this , $ data );
189
189
}
@@ -194,7 +194,7 @@ public function addComment($comment)
194
194
public function showComments ()
195
195
{
196
196
$ notes = array ();
197
- $ data = $ this ->client ->mergeRequests ()->showComments ($ this ->project ->id , $ this ->id );
197
+ $ data = $ this ->client ->mergeRequests ()->showComments ($ this ->project ->id , $ this ->iid );
198
198
199
199
foreach ($ data as $ note ) {
200
200
$ notes [] = Note::fromArray ($ this ->getClient (), $ this , $ note );
@@ -220,7 +220,7 @@ public function isClosed()
220
220
*/
221
221
public function changes ()
222
222
{
223
- $ data = $ this ->client ->mergeRequests ()->changes ($ this ->project ->id , $ this ->id );
223
+ $ data = $ this ->client ->mergeRequests ()->changes ($ this ->project ->id , $ this ->iid );
224
224
225
225
return static ::fromArray ($ this ->getClient (), $ this ->project , $ data );
226
226
}
0 commit comments