debian-mirror-gitlab/app/helpers/suggest_pipeline_helper.rb

10 lines
241 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
module SuggestPipelineHelper
def should_suggest_gitlab_ci_yml?
2021-01-29 00:20:46 +05:30
Feature.enabled?(:suggest_pipeline, default_enabled: true) &&
2020-04-08 14:13:33 +05:30
current_user &&
params[:suggest_gitlab_ci_yml] == 'true'
end
end