app/models/deploy.rb
def summary_for_timeline
    if ["cancelling", "cancelled", "errored"].include?(status)
      "#{short_reference} deploy to #{stage&.name} is #{status}"
    else
      "#{short_reference}#{' was' if job.succeeded?} #{summary_action} to #{stage&.name}"
    end
  end
# same as summary but without mentioning the user since it will be in the UI close by
same as summary but without mentioning the user since it will be in the UI close by
same as summary but without mentioning the user since it will be in the UI close by
def summary_for_timeline
    if ["cancelling", "cancelled", "errored"].include?(status)
      "#{short_reference} deploy to #{stage&.name} is #{status}"
    else
      "#{short_reference}#{' was' if job.succeeded?} #{summary_action} to #{stage&.name}"
    end
  end
def summary_for_timeline if [ "cancelling" , "cancelled" , "errored" ] . include? ( status ) "#{short_reference} deploy to #{stage&.name} is #{status}" else "#{short_reference}#{' was' if job.succeeded?} #{summary_action} to #{stage&.name}" end end
same as summary but without mentioning the user since it will be in the UI close by
same as summary but without mentioning the user since it will be in the UI close by