Revert adding new methods in CI/CD stage class
This commit is contained in:
parent
056f1b7020
commit
d4522de2fd
1 changed files with 0 additions and 12 deletions
|
@ -19,10 +19,6 @@ module Ci
|
|||
name
|
||||
end
|
||||
|
||||
def index
|
||||
statuses.first.stage_idx
|
||||
end
|
||||
|
||||
def statuses_count
|
||||
@statuses_count ||= statuses.count
|
||||
end
|
||||
|
@ -49,14 +45,6 @@ module Ci
|
|||
status.to_s == 'success'
|
||||
end
|
||||
|
||||
def failed?
|
||||
status.to_s == 'failed'
|
||||
end
|
||||
|
||||
def canceled?
|
||||
status.to_s == 'canceled'
|
||||
end
|
||||
|
||||
def has_warnings?
|
||||
if @warnings.nil?
|
||||
statuses.latest.failed_but_allowed.any?
|
||||
|
|
Loading…
Reference in a new issue