API: Indicate if label is a project label

This commit is contained in:
Robert Schilling 2019-02-13 21:50:45 +01:00
parent 7a8f8714cc
commit 1809f6f631
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
title: 'API: Indicate if label is a project label'
merge_request: 25219
author: Robert Schilling
type: added

View file

@ -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