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

Check for transition loopback in commit status

parent 3fb4d86c
...@@ -85,7 +85,9 @@ class CommitStatus < ActiveRecord::Base ...@@ -85,7 +85,9 @@ class CommitStatus < ActiveRecord::Base
commit_status.update_attributes finished_at: Time.now commit_status.update_attributes finished_at: Time.now
end end
after_transition do |commit_status| after_transition do |commit_status, transition|
return if transition.loopback?
commit_status.run_after_commit do commit_status.run_after_commit do
pipeline.try do |pipeline| pipeline.try do |pipeline|
if complete? 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