Commit d7e8c80d authored by Kamil Trzcinski's avatar Kamil Trzcinski

Resolve conflicts ci/build.rb, api/entities.rb

parent b0ad8db0
...@@ -4,10 +4,7 @@ module Ci ...@@ -4,10 +4,7 @@ module Ci
include AfterCommitQueue include AfterCommitQueue
include Presentable include Presentable
include Importable include Importable
<<<<<<< HEAD
prepend EE::Build prepend EE::Build
=======
>>>>>>> ce-com/master
belongs_to :runner belongs_to :runner
belongs_to :trigger_request belongs_to :trigger_request
...@@ -42,10 +39,7 @@ module Ci ...@@ -42,10 +39,7 @@ module Ci
scope :with_expired_artifacts, ->() { with_artifacts.where('artifacts_expire_at < ?', Time.now) } scope :with_expired_artifacts, ->() { with_artifacts.where('artifacts_expire_at < ?', Time.now) }
scope :last_month, ->() { where('created_at > ?', Date.today - 1.month) } scope :last_month, ->() { where('created_at > ?', Date.today - 1.month) }
scope :manual_actions, ->() { where(when: :manual, status: COMPLETED_STATUSES + [:manual]) } scope :manual_actions, ->() { where(when: :manual, status: COMPLETED_STATUSES + [:manual]) }
<<<<<<< HEAD
scope :codequality, ->() { where(name: %w[codequality codeclimate]) } scope :codequality, ->() { where(name: %w[codequality codeclimate]) }
=======
>>>>>>> ce-com/master
scope :ref_protected, -> { where(protected: true) } scope :ref_protected, -> { where(protected: true) }
mount_uploader :artifacts_file, ArtifactUploader mount_uploader :artifacts_file, ArtifactUploader
......
...@@ -914,8 +914,7 @@ module API ...@@ -914,8 +914,7 @@ module API
class Variable < Grape::Entity class Variable < Grape::Entity
expose :key, :value expose :key, :value
<<<<<<< HEAD expose :protected?, as: :protected, if: -> (entity, _) { entity.respond_to?(:protected?) }
expose :protected?, as: :protected
# EE # EE
expose :environment_scope, if: ->(variable, options) { expose :environment_scope, if: ->(variable, options) {
...@@ -923,9 +922,6 @@ module API ...@@ -923,9 +922,6 @@ module API
variable.project.feature_available?(:variable_environment_scope) variable.project.feature_available?(:variable_environment_scope)
end end
} }
=======
expose :protected?, as: :protected, if: -> (entity, _) { entity.respond_to?(:protected?) }
>>>>>>> ce-com/master
end end
class Pipeline < PipelineBasic class Pipeline < PipelineBasic
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment