tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.2k stars 229 forks source link

Add GitLab module #951

Closed beckcl closed 1 year ago

beckcl commented 1 year ago

Adds a new gitlab module to display GitLab TODOs. The functionality and configuration is similar to the github notifications module.

Module Doc:

Displays the GitLab todo count:

    * https://docs.gitlab.com/ee/user/todos.html
    * https://docs.gitlab.com/ee/api/todos.html

Uses `xdg-open` or `x-www-browser` to open web-pages.

Requires the following library:
    * requests

Errors:
    if the GitLab todo query failed, the shown value is `n/a`

Parameters:
    * gitlab.token: GitLab personal access token, the token needs to have the "api" scope.
    * gitlab.host: Host of the GitLab instance, default is "gitlab.com".
    * gitlab.actions: Comma separated actions to be parsed (e.g.: gitlab.actions=assigned,approval_required)
tobi-wan-kenobi commented 1 year ago

Many thanks! Very useful addition!

I am especially grateful you included unit tests, as well.