Commit 1b624ba4 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve name of CI entry validation context hook

parent d9142f2c
......@@ -34,7 +34,7 @@ module Gitlab
end
def validate!
@validator.validate(:after)
@validator.validate(:processed)
@entries.each_value(&:validate!)
end
......
......@@ -10,7 +10,7 @@ module Gitlab
validations do
validates :config, type: Hash
validate :jobs_presence, on: :after
validate :jobs_presence, on: :processed
def jobs_presence
unless relevant?
......
......@@ -11,7 +11,7 @@ module Gitlab
validations do
validates :config, key: true
validates :global, required_attribute: true
validate :known_stage, on: :after
validate :known_stage, on: :processed
def known_stage
unless known?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment