Skip to content
Snippets Groups Projects

Support for release key in gitlab-ci.yaml

Merged Sean Carroll requested to merge 26013-release-generation-from-within-gitlab-ci-yml-2 into master
All threads resolved!
3 files
+ 16
25
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -12,8 +12,8 @@ class Release < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
include ::Gitlab::Config::Entry::Attributable
ALLOWED_KEYS = %i[name description assets].freeze
attributes %i[name assets].freeze
ALLOWED_KEYS = %i[tag name description assets].freeze
attributes %i[tag name assets].freeze
# Attributable description conflicts with
# ::Gitlab::Config::Entry::Node.description
@@ -29,6 +29,7 @@ def description
validations do
validates :config, allowed_keys: ALLOWED_KEYS
validates :tag, presence: true
validates :description, type: String, presence: true
end
Loading