summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-18 20:39:44 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-18 20:39:44 +0200
commite0f90fb2dee39a6d7f2ecea7de43466bf9ac25ad (patch)
treee86dc6d5525c245ef7391dc58912bb03c37b853c /app
parentf374379834b13f574015917440b0e7e702d8198f (diff)
downloadgitlab-ce-e0f90fb2dee39a6d7f2ecea7de43466bf9ac25ad.tar.gz
Return created status
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/has_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb
index d658552f695..0fa4df0fb56 100644
--- a/app/models/concerns/has_status.rb
+++ b/app/models/concerns/has_status.rb
@@ -20,7 +20,7 @@ module HasStatus
skipped = scope.skipped.select('count(*)').to_sql
deduce_status = "(CASE
- WHEN (#{builds})=(#{created}) THEN NULL
+ WHEN (#{builds})=(#{created}) THEN 'created'
WHEN (#{builds})=(#{skipped}) THEN 'skipped'
WHEN (#{builds})=(#{success})+(#{ignored})+(#{skipped}) THEN 'success'
WHEN (#{builds})=(#{created})+(#{pending})+(#{skipped}) THEN 'pending'