2020-03-04 09:08:20 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module SuggestPipelineHelper
|
|
|
|
def should_suggest_gitlab_ci_yml?
|
2020-10-27 06:08:27 +00:00
|
|
|
Feature.enabled?(:suggest_pipeline, default_enabled: true) &&
|
2020-03-04 09:08:20 +00:00
|
|
|
current_user &&
|
|
|
|
params[:suggest_gitlab_ci_yml] == 'true'
|
|
|
|
end
|
|
|
|
end
|