summaryrefslogtreecommitdiff
path: root/app/helpers/suggest_pipeline_helper.rb
blob: d64e8d6f2cd07a3172c5534ea48ebf46540629a9 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module SuggestPipelineHelper
  def should_suggest_gitlab_ci_yml?
    experiment_enabled?(:suggest_pipeline) &&
      current_user &&
      params[:suggest_gitlab_ci_yml] == 'true'
  end
end