File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,29 @@ public function update(array $params)
57
57
return MergeRequest::fromArray ($ this ->getClient (), $ this ->project , $ data );
58
58
}
59
59
60
- public function close ()
60
+ public function close ($ comment = null )
61
61
{
62
- return $ this ->update (array ('state_event ' => 'close ' ));
62
+ if ($ comment ) {
63
+ $ this ->addComment ($ comment );
64
+ }
65
+
66
+ return $ this ->update (array (
67
+ 'state_event ' => 'close '
68
+ ));
63
69
}
64
70
65
- public function open ()
71
+ public function reopen ()
66
72
{
67
- return $ this ->update (array ('state_event ' => 'reopen ' ));
73
+ return $ this ->update (array (
74
+ 'state_event ' => 'reopen '
75
+ ));
68
76
}
69
77
70
- public function merge ()
78
+ public function merged ()
71
79
{
72
- return $ this ->update (array ('state_event ' => 'merge ' ));
80
+ return $ this ->update (array (
81
+ 'state_event ' => 'merge '
82
+ ));
73
83
}
74
84
75
85
public function addComment ($ note )
You can’t perform that action at this time.
0 commit comments