debian-mirror-gitlab/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 Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class LabelBasic < Grape::Entity
2022-05-07 20:08:51 +05:30
expose :id, :name, :description, :description_html, :text_color
expose :color do |label, options|
label.color.to_s
end
2020-03-13 15:44:24 +05:30
end
end
end