API: Indicate if label is a project label
This commit is contained in:
parent
7a8f8714cc
commit
1809f6f631
2 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: 'API: Indicate if label is a project label'
|
||||
merge_request: 25219
|
||||
author: Robert Schilling
|
||||
type: added
|
|
@ -1031,6 +1031,9 @@ module API
|
|||
expose :priority do |label, options|
|
||||
label.priority(options[:parent])
|
||||
end
|
||||
expose :is_project_label do |label, options|
|
||||
label.is_a?(::ProjectLabel)
|
||||
end
|
||||
end
|
||||
|
||||
class List < Grape::Entity
|
||||
|
|
Loading…
Reference in a new issue