Merge pull request #7068 from chino/only-check-ci-status-when-ci-service-enabled
project: ci_service should only catch ci services
This commit is contained in:
commit
239b84e933
|
@ -330,7 +330,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def ci_service
|
||||
@ci_service ||= services.select(&:activated?).first
|
||||
@ci_service ||= ci_services.select(&:activated?).first
|
||||
end
|
||||
|
||||
# For compatibility with old code
|
||||
|
|
Loading…
Reference in New Issue