Skip buils that were canceled but not started yet
This commit is contained in:
parent
b609ee55f2
commit
a70a83cf29
|
|
@ -65,7 +65,8 @@ class CommitStatus < ActiveRecord::Base
|
|||
end
|
||||
|
||||
event :cancel do
|
||||
transition [:created, :pending, :running] => :canceled
|
||||
transition [:pending, :running] => :canceled
|
||||
transition [:created] => :skipped
|
||||
end
|
||||
|
||||
before_transition created: [:pending, :running] do |commit_status|
|
||||
|
|
|
|||
Loading…
Reference in New Issue