diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 12:08:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 12:08:20 +0300 |
commit | d80f3cd75e700b6e62910865bfd36734644ffa89 (patch) | |
tree | aa2fa2f2b4385854c13591bef8e74924ef661657 /app/helpers/suggest_pipeline_helper.rb | |
parent | be81c1578d65f25edfde8aa550f190b8d3e6d976 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/suggest_pipeline_helper.rb')
-rw-r--r-- | app/helpers/suggest_pipeline_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/suggest_pipeline_helper.rb b/app/helpers/suggest_pipeline_helper.rb new file mode 100644 index 00000000000..aa67f0ea770 --- /dev/null +++ b/app/helpers/suggest_pipeline_helper.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module SuggestPipelineHelper + def should_suggest_gitlab_ci_yml? + Feature.enabled?(:suggest_pipeline) && + current_user && + params[:suggest_gitlab_ci_yml] == 'true' + end +end |