diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-04 16:52:48 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-10-04 16:52:48 +0000 |
commit | 84c4e920cdf45a182064461a681d4660d9a19073 (patch) | |
tree | f4f7ceec321da7cd16cbbd85405d5ba906f87b80 /lib/gitlab.rb | |
parent | bfdac6324c717d014b7271a83c2bf883814f93d7 (diff) | |
parent | 707148ebae4cdda42b2b0cc5f87a6aa49615728f (diff) | |
download | gitlab-ce-feature/gb/pipeline-only-except-with-modified-paths.tar.gz |
Merge branch 'master' into 'feature/gb/pipeline-only-except-with-modified-paths'feature/gb/pipeline-only-except-with-modified-paths
# Conflicts:
# app/models/ci/pipeline.rb
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r-- | lib/gitlab.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb index ab6b609d099..7790534d5d7 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -47,4 +47,8 @@ module Gitlab def self.dev_env_or_com? Rails.env.development? || org? || com? end + + def self.pre_release? + VERSION.include?('pre') + end end |