debian-mirror-gitlab/app/helpers/suggest_pipeline_helper.rb
2021-01-30 21:13:34 +05:30

9 lines
241 B
Ruby

# frozen_string_literal: true
module SuggestPipelineHelper
def should_suggest_gitlab_ci_yml?
Feature.enabled?(:suggest_pipeline, default_enabled: true) &&
current_user &&
params[:suggest_gitlab_ci_yml] == 'true'
end
end