Commit 1709e5cf authored by Z.J. van de Weg's avatar Z.J. van de Weg

retryable? is now available for CommitStatus

parent a29ba51e
......@@ -18,7 +18,7 @@ class CommitStatus < ActiveRecord::Base
validates :name, presence: true
alias_attribute :author, :user
scope :failed_but_allowed, -> do
where(allow_failure: true, status: [:failed, :canceled])
end
......@@ -126,6 +126,11 @@ class CommitStatus < ActiveRecord::Base
false
end
# To be overriden when inherrited from
def retryable?
false
end
def stuck?
false
end
......
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