Skip to content
Snippets Groups Projects
Commit 1709e5cf authored by Z.J. van de Weg's avatar Z.J. van de Weg
Browse files

retryable? is now available for CommitStatus

parent a29ba51e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -126,6 +126,11 @@ class CommitStatus < ActiveRecord::Base
false
end
 
# To be overriden when inherrited from
def retryable?
false
end
def stuck?
false
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment