summaryrefslogtreecommitdiff
path: root/app/models/commit_status.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-10 14:19:41 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-10 15:13:55 +0200
commit2cc0c692c082fddabcbb5ddc51e46d7996f5c3d7 (patch)
treea169d5aa280794a1fa94424c45b59df4a87d64bc /app/models/commit_status.rb
parent2c7f0766640af870500c7d681460c754ac938b1c (diff)
downloadgitlab-ce-2cc0c692c082fddabcbb5ddc51e46d7996f5c3d7.tar.gz
Ensure that enqueuing a commit status always sets 'queued_at' value
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 3469d5d795c..b6276c2fb50 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -87,7 +87,7 @@ class CommitStatus < ActiveRecord::Base
transition [:created, :pending, :running, :manual] => :canceled
end
- before_transition created: [:pending, :running] do |commit_status|
+ before_transition [:created, :skipped, :manual] => :pending do |commit_status|
commit_status.queued_at = Time.now
end