Welcome to mirror list, hosted at ThFree Co, Russian Federation.

suggest_pipeline_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3151b79234421aa595699abbee799e529ae496d1 (plain)
1
2
3
4
5
6
7
8
9
# 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