Commit 1809f6f6 authored by Robert Schilling's avatar Robert Schilling

API: Indicate if label is a project label

parent 7a8f8714
---
title: 'API: Indicate if label is a project label'
merge_request: 25219
author: Robert Schilling
type: added
...@@ -1031,6 +1031,9 @@ module API ...@@ -1031,6 +1031,9 @@ module API
expose :priority do |label, options| expose :priority do |label, options|
label.priority(options[:parent]) label.priority(options[:parent])
end end
expose :is_project_label do |label, options|
label.is_a?(::ProjectLabel)
end
end end
class List < Grape::Entity class List < Grape::Entity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment