Skip to content

Fix empty brackets showing in pipeline status

Hey! I noticed that sometimes the status bar would show GitLab: Pipeline running () and I find the empty parenthesis ugly (sorry! 🙈).

I suspect the parenthesis are empty because fetchLastJobsForCurrentBranch probably returns an empty array if all jobs are pending. I'm not really sure how it happens but it did for me a couple of times now.

This MR adds a check that at least one job has to be present to append the parenthesis with the job name(s).

Before After
image image

Merge request reports