/gitlab-pipelines-not-passing

display non-passing GitLab pipelines in py3status

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

gitlab-pipelines-not-passing

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

py3status configuration

i3block gitlab {
    command = "echo GitLab failures $(python /path/to/gitlab-pipelines-not-passing.py) 2> /dev/null"
    interval = 3600
}

Why not?

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.