Commit 904de2d6 authored by Grzegorz Bizon's avatar Grzegorz Bizon 🌴

Check for transition loopback in commit status

parent 3fb4d86c
Pipeline #4532566 passed with stages
in 36 minutes and 58 seconds
......@@ -85,7 +85,9 @@ class CommitStatus < ActiveRecord::Base
commit_status.update_attributes finished_at: Time.now
end
after_transition do |commit_status|
after_transition do |commit_status, transition|
return if transition.loopback?
commit_status.run_after_commit do
pipeline.try do |pipeline|
if complete?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment