Skip to content

Commit 92dd0f7

Browse files
KeithYehm1guelpf
authored andcommitted
Add hasLabel method to Issue model
1 parent bb0fdfb commit 92dd0f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/Gitlab/Model/Issue.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,13 @@ public function isClosed()
168168

169169
return false;
170170
}
171+
172+
/**
173+
* @param string $label
174+
* @return bool
175+
*/
176+
public function hasLabel($label)
177+
{
178+
return in_array($label, $this->labels);
179+
}
171180
}

0 commit comments

Comments
 (0)