Skip to content

Commit 34f18c4

Browse files
committed
Added isClosed() method
1 parent b1d445b commit 34f18c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/Gitlab/Model/MergeRequest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,13 @@ public function addComment($note)
8989
return Note::fromArray($this->getClient(), $this, $data);
9090
}
9191

92+
public function isClosed()
93+
{
94+
if (in_array($this->state, 'closed', 'merged')) {
95+
return true;
96+
}
97+
98+
return false;
99+
}
100+
92101
}

0 commit comments

Comments
 (0)