A small terminal UI for your GitLab to-do list. It talks to the GitLab REST API
directly, so glab is optional at runtime. On first run it can import a token
from glab's config file if one exists; otherwise it asks for a host and token.
GLAB TODO · 3 pending updated just now
──────────────────────────────────────────────────────────────────────────────────────
▸ assigned MR Fix the widget alignment acme/widgets!12 1d
review req MR Add pagination to the users endpoint acme/api!44 10h
build fail MR Update the onboarding guide acme/docs!3 4d
──────────────────────────────────────────────────────────────────────────────────────
Fix the widget alignment
acme/widgets!12 · MR · assigned to you · by alice · 1d ago
https://gitlab.com/acme/widgets/-/merge_requests/12
› The widgets are misaligned on narrow screens.
todo #101 · opened · created 2026-12-01 10:00
↵ details · o browser · d done · r refresh · / filter · ? help · q quit 1/3
- Go 1.24+ to build from source.
- A GitLab access token. A personal access token with
read_apiis enough to view to-dos; addapiif you want to mark items done from the TUI. - A terminal. If stdout is not a TTY (or you pass
--plain), the tool prints a plain table once and exits.
Prebuilt binaries for Linux, macOS, and Windows are on the releases page.
With Go installed:
go install github.com/b7r-dev/gitlab-todo-watch@latestFrom source:
git clone https://github.com/b7r-dev/gitlab-todo-watch.git
cd gitlab-todo-watch
go build -o gitlab-todo-watch .
./gitlab-todo-watchOn first run, the watcher looks for credentials in glab's YAML config
($GLAB_CONFIG_DIR/config.yml, $XDG_CONFIG_HOME/glab-cli/config.yml, or
~/.config/glab-cli/config.yml). If it finds a personal access token, it
offers to use it. If not, it prompts for a GitLab host and a token (input is
hidden). Either way, it verifies the token against GET /api/v4/user before
saving.
If glab is signed in with OAuth, the watcher does not reuse that session.
glab rotates OAuth tokens, so consuming its refresh token here could break
glab's login. The watcher explains this and asks for a personal access token
with the read_api scope instead.
Configuration is stored at:
~/.config/gitlab-todo-watch/config.json
with 0600 permissions (the directory is 0700):
{
"host": "https://gitlab.com",
"token": "glpat-..."
}For self-hosted GitLab, set host to the base URL, for example
https://gitlab.example.com or https://example.com/gitlab. Do not include
/api/v4; the watcher adds it.
To replace the token or host later:
gitlab-todo-watch --setupIf glab stores its token in the OS keyring instead of its config file, the watcher cannot import it; paste the token during setup instead.
-state string pending, done, or all (default "pending")
-action string assigned, mentioned, build_failed, marked,
approval_required, directly_addressed,
review_requested, or unmergeable
-type string Issue or MergeRequest
-interval duration auto-refresh interval (default 5m; 0 disables)
-plain print once and exit
-setup configure host/token and exit
-version print version and exit
Examples:
gitlab-todo-watch --state=all
gitlab-todo-watch --action=assigned
gitlab-todo-watch --type=MergeRequest --interval=1m
gitlab-todo-watch --plain| Key | Action |
|---|---|
j / k, ↑ / ↓ |
move selection / scroll the details modal |
g / G, home / end |
jump to top / bottom |
pgup / pgdn, ctrl+u / ctrl+d |
move a page |
enter |
open the details modal |
o |
open the selected item in your browser |
d |
mark the selected item as done (asks first) |
r |
refresh now |
/ |
filter the list |
esc |
close the details modal / clear the filter |
? |
help |
q / ctrl+c |
quit |
- Checks the token with
GET /api/v4/user. - Fetches
GET /api/v4/todoswithstate,action, andtypefilters. - Reads
X-Total-Pagesand fetches the remaining pages concurrently. - Marks selected items done with
POST /api/v4/todos/:id/mark_as_done. - Opens the selected item in a scrollable Markdown-rendered details modal.
- Keeps the rendered list and cursor in place while refreshing.
The token is sent only to the configured GitLab host in an Authorization: Bearer header. The config file is written atomically with owner-only
permissions and is never logged.
See CHANGELOG.md for release history.
Releases are tag-driven. Pushing a semantic-version tag runs the release workflow, which tests the tagged commit and runs GoReleaser.
git tag -a v0.1.0 -m "v0.1.0"
git push origin v0.1.0Each release attaches:
- Linux archives for
amd64andarm64 - macOS archives for
amd64andarm64 - Windows archive for
amd64 checksums.txtwith SHA-256 sums
Archives contain the binary, README.md, and LICENSE. Tags with a
pre-release suffix, such as v0.2.0-rc.1, are marked as pre-releases
automatically. The binary version, commit, and build date are injected at
build time and shown by gitlab-todo-watch --version.
go test ./...
go test -race ./...
go vet ./...MIT License, copyright © 2026 B7R LLC. See LICENSE.