Skip to content
Snippets Groups Projects
Commit 5941f3a7 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Implement `Project#has_ci?`

parent 82ed2a09
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1389,6 +1389,10 @@ class Project < ActiveRecord::Base
Gitlab::Utils.slugify(full_path.to_s)
end
 
def has_ci?
@repository.gitlab_ci_yml || @project.auto_devops_enabled?
end
def predefined_variables
[
{ key: 'CI_PROJECT_ID', value: id.to_s, public: true },
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@
"finished-path" => project_pipelines_path(@project, scope: :finished),
"branches-path" => project_pipelines_path(@project, scope: :branches),
"tags-path" => project_pipelines_path(@project, scope: :tags),
"has-ci" => @repository.gitlab_ci_yml || @project.auto_devops_enabled?,
"has-ci" => @project.has_ci?,
"ci-lint-path" => ci_lint_path } }
 
= page_specific_javascript_bundle_tag('common_vue')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment