Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix triggered jobs duration #730

Merged
merged 1 commit into from
May 16, 2021
Merged

Commits on May 16, 2021

  1. Fix triggered jobs duration

    This commit fixes a bug where a `glab ci status` would panic if there is
    a job within that CI pipeline that is not triggered yet. In such a case,
    the StartedAt field is not populated, which triggered a panic.
    
    To fix this, we use `time.Now()` if `StartedAt` is nil, which means that
    the job will be displayed with a duration of 0.
    
    Fixes profclems#727
    Ramon Rüttimann committed May 16, 2021
    Configuration menu
    Copy the full SHA
    290a138 View commit details
    Browse the repository at this point in the history