gitlab-org--gitlab-foss/lib/api/entities/label_basic.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
261 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
module API
module Entities
class LabelBasic < Grape::Entity
expose :id, :name, :description, :description_html, :text_color
expose :color do |label, options|
label.color.to_s
end
end
end
end