提交 a70a83cf 编写于 作者: G Grzegorz Bizon

Skip buils that were canceled but not started yet

上级 b609ee55
......@@ -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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册