7188b4d839
For quicker access, add hyperlink to the gitlab.com commits page for the current REVISION of GitLab.
14 lines
316 B
Ruby
14 lines
316 B
Ruby
require_dependency 'gitlab/git'
|
|
|
|
module Gitlab
|
|
COM_URL = 'https://gitlab.com'.freeze
|
|
|
|
def self.com?
|
|
# Check `staging?` as well to keep parity with gitlab.com
|
|
Gitlab.config.gitlab.url == COM_URL || staging?
|
|
end
|
|
|
|
def self.staging?
|
|
Gitlab.config.gitlab.url == 'https://staging.gitlab.com'
|
|
end
|
|
end
|