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

Commit

Permalink
Merge pull request #869 from EduardBaer/pipeline-pending
Browse files Browse the repository at this point in the history
fix(ci status): add check for pending pipelines
  • Loading branch information
profclems authored Oct 12, 2021
2 parents f127d7e + 509388b commit 7ce30c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/ci/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func NewCmdStatus(f *cmdutils.Factory) *cobra.Command {
if !f.IO.IsOutputTTY() || !f.IO.PromptEnabled() {
break
}
if runningPipeline.Status == "running" && live {
if (runningPipeline.Status == "pending" || runningPipeline.Status == "running") && live {
runningPipeline, err = api.GetLastPipeline(apiClient, repo.FullName(), branch)
if err != nil {
return err
Expand Down

0 comments on commit 7ce30c6

Please sign in to comment.