diff options
Diffstat (limited to 'app/helpers/blob_helper.rb')
-rw-r--r-- | app/helpers/blob_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index 0d5b8755a37..8c199aefd81 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -300,7 +300,7 @@ module BlobHelper end def show_suggest_pipeline_creation_celebration? - @blob.path == Gitlab::FileDetector::PATTERNS[:gitlab_ci] && + Gitlab::FileDetector.type_of(@blob.path) == :gitlab_ci && @blob.auxiliary_viewer&.valid?(project: @project, sha: @commit.sha, user: current_user) && @project.uses_default_ci_config? && cookies[suggest_pipeline_commit_cookie_name].present? |