Class: GitLab::CI::Lint::Actions

Inherits:
Client
  • Object
show all
Defined in:
lib/gitlab/ci/lint/actions.rb

Instance Method Summary collapse

Methods inherited from Client

#post

Instance Method Details

#validate_gitlab_ci_yml(url, content, headers, timeout) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/gitlab/ci/lint/actions.rb', line 9

def validate_gitlab_ci_yml url, content, headers, timeout
  result = post(url, content, headers, timeout)
  message = GitLab::CI::Lint::Serializer.new(result)
  if result["status"] == "valid"
    message.success()
  else
    message.failure()
  end
end