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