diff options
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/bridge.rb | 1 | ||||
-rw-r--r-- | app/models/ci/build.rb | 11 |
2 files changed, 1 insertions, 11 deletions
diff --git a/app/models/ci/bridge.rb b/app/models/ci/bridge.rb index 5450d40ea95..f570403615b 100644 --- a/app/models/ci/bridge.rb +++ b/app/models/ci/bridge.rb @@ -5,6 +5,7 @@ module Ci include Ci::Processable include Importable include AfterCommitQueue + include HasRef include Gitlab::Utils::StrongMemoize belongs_to :project diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 65962fba14d..f2369191b76 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -398,17 +398,6 @@ module Ci options&.dig(:environment, :on_stop) end - # A slugified version of the build ref, suitable for inclusion in URLs and - # domain names. Rules: - # - # * Lowercased - # * Anything not matching [a-z0-9-] is replaced with a - - # * Maximum length is 63 bytes - # * First/Last Character is not a hyphen - def ref_slug - Gitlab::Utils.slugify(ref.to_s) - end - ## # Variables in the environment name scope. # |