diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-13 21:50:45 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-13 21:50:45 +0100 |
commit | 1809f6f631c79a6dac8373782c4931393edcc7ff (patch) | |
tree | b299f4487c42f5f427e456fe57bf2708d99c555d /lib | |
parent | 7a8f8714cc65b36b8dbc4fe180eeb73aa2eeba0f (diff) | |
download | gitlab-ce-1809f6f631c79a6dac8373782c4931393edcc7ff.tar.gz |
API: Indicate if label is a project label
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 3 |
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 |