This script checks GitLab pipelines statuses for configured repositories and only outputs ones that are not passing. It was designed to be used with py3status.
$ python gitlab-pipelines-not-passing.py
glib, jakrevo
i3block gitlab {
command = "echo GitLab failures $(python /path/to/gitlab-pipelines-not-passing.py) 2> /dev/null"
interval = 3600
}
Why not use the py3status GitLab module?
The module requires a token, and I did not fell like creating accounts just for this purpose.
Why parse the pipeline status badge svg files instead of using the GitLab API?
At the time, it was way easier.