diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-10-03 14:50:29 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-10-04 15:43:24 +0300 |
commit | 578638742ab431a57f9add51684203b0d1c19348 (patch) | |
tree | 4bb4d8649afe61bc3a3054a3f1300cfa109ad60f /app/models | |
parent | 68774452a47ec71a490eb5eaeedd5a3222aa2c68 (diff) |
Use internal commit status API to check if finished
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit_status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index b0718e2213c..966a2449d2c 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -80,8 +80,8 @@ class CommitStatus < ActiveRecord::Base after_transition do |commit_status, transition| if commit_status.pipeline && !transition.loopback? ProcessPipelineWorker.perform_async( - commit_status.pipeline.id, - process: HasStatus::COMPLETED_STATUSES.include?(commit_status.status)) + commit_status.pipeline.id, process: commit_status.complete? + ) end true |