summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-07-30 14:07:23 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-08-05 11:38:33 +0200
commita25cd51d33cf26059c9938d2be261f40f80c180b (patch)
tree3781d2674062557423654146d4b8a0183d991ee6
parenta5c6bf0317d69d5e385ac1afd72f6c294bc7a004 (diff)
downloadgitlab-ci-a25cd51d33cf26059c9938d2be261f40f80c180b.tar.gz
Commits without builds are marked as skipped
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index af03253..8359bd2 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -161,7 +161,7 @@ class Commit < ActiveRecord::Base
end
def status
- if skip_ci?
+ if skip_ci? || builds.none?
return 'skipped'
end