https://github.com/ivarref/labtail
Tail gitlab job output
https://github.com/ivarref/labtail
Last synced: 4 months ago
JSON representation
Tail gitlab job output
- Host: GitHub
- URL: https://github.com/ivarref/labtail
- Owner: ivarref
- Created: 2025-08-25T09:46:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-25T12:39:35.000Z (5 months ago)
- Last Synced: 2025-08-25T14:41:47.259Z (5 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# labtail
Are you tired of clicking around in the GitLab Web UI to see the output of pipelines
and jobs? If so, this tool is for you.
`labtail` will:
* Show the output of the most recent GitLab pipeline job.
* Keep looking for new pipelines and show the output.
* Optionally commit and push your changes if `--push` is given*.
\* Useful for small edits to `.gitlab-ci.yml`.
## Installation
```
curl -LsSf https://raw.githubusercontent.com/ivarref/labtail/87960428e489b4a27d00aec83cfce9916e8b3ee8/labtail.sh -O \
&& chmod +x ./labtail.sh \
&& mv ./labtail.sh "$HOME/.local/bin/labtail"
```
`labtail` requires [glab](https://docs.gitlab.com/editor_extensions/gitlab_cli/),
the GitLab CLI tool, to be installed and properly authenticated to your
GitLab remote. [jq](https://jqlang.org/) is also required.
## My old workflow
* Make an actual change and save the file.
* Alt-0: go to git changes.
* Space: mark file to commit.
* Alt-P: push marked changes.
* Alt-P again: yes, push those changes.
* Alt-tab to browser.
* Ctrl-R: refresh the pipeline.
* Click the pipeline.
* Click the job.
* Wait for the output to appear, maybe scroll down.
* Whoops, the line should start with `- |` not `- >`.
* Alt-tab to IDE. Go to start.
## My new workflow
* Run `labtail --push` in a terminal.
* Make changes and save files.
* Breathe and enjoy life*.
\* I may be still writing bash in YAML occasionally, but hey.
## Usage
```bash
labtail
```
Or automatically push changes:
```bash
labtail --push
```