Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-12-17 18:21:36 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-12-17 18:33:47 +0300
commit58a56a03967a407bf376f960809d3398a3153645 (patch)
treee76fcc3719ab30f96043e5de0b646229ea1a7452 /app/models/ci/commit.rb
parentb2c593dac513c0e12153e0aa786759c4ebc996bc (diff)
Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r--app/models/ci/commit.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb
index 6bf596e5d3e..d2a29236942 100644
--- a/app/models/ci/commit.rb
+++ b/app/models/ci/commit.rb
@@ -218,16 +218,6 @@ module Ci
update!(committed_at: DateTime.now)
end
- ##
- # This method checks if build status should be displayed.
- #
- # Build status should be available only if builds are enabled
- # on project level and `.gitlab-ci.yml` file is present.
- #
- def show_build_status?
- project.builds_enabled? && ci_yaml_file
- end
-
private
def save_yaml_error(error)