debian-mirror-gitlab/lib/gitlab/ci/config/entry/rules/rule/changes.rb

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

24 lines
557 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
class Rules
class Rule
class Changes < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
validations do
validates :config,
array_of_strings: true,
length: { maximum: 50, too_long: "has too many entries (maximum %{count})" }
end
end
end
end
end
end
end
end