-
- Downloads
Convert seconds to minutes and hours on chat notifations
In the pipeline message, the duration of the pipeline was shown as: > gitlab-org/gitlab-ee: Pipeline #8002259 of master branch by Douwe Maan failed in 8612 seconds But this many seconds only gave me a clue how long the pipeline took, so now this will be shown as something like: 02:20:12 which gives a much better measure of time.
Showing
- app/models/project_services/chat_message/base_message.rb 11 additions, 0 deletionsapp/models/project_services/chat_message/base_message.rb
- app/models/project_services/chat_message/pipeline_message.rb 3 additions, 7 deletionsapp/models/project_services/chat_message/pipeline_message.rb
- changelogs/unreleased/zj-chat-message-pretty-time.yml 4 additions, 0 deletionschangelogs/unreleased/zj-chat-message-pretty-time.yml
- spec/models/project_services/chat_message/pipeline_message_spec.rb 6 additions, 9 deletions...ls/project_services/chat_message/pipeline_message_spec.rb