Skip to content
Snippets Groups Projects
Commit 57863874 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Use internal commit status API to check if finished

parent 68774452
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment