summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2019-02-13 21:50:45 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2019-02-13 21:50:45 +0100
commit1809f6f631c79a6dac8373782c4931393edcc7ff (patch)
treeb299f4487c42f5f427e456fe57bf2708d99c555d /lib
parent7a8f8714cc65b36b8dbc4fe180eeb73aa2eeba0f (diff)
downloadgitlab-ce-1809f6f631c79a6dac8373782c4931393edcc7ff.tar.gz
API: Indicate if label is a project label
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index beb8ce349b4..4fa501d087f 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -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