git-browse-ci
Browse CI results from the command line
TLDR
Open the current repository's CI configuration on its upstream website
Open the current repository's CI configuration on its upstream website for a specific remote
SYNOPSIS
git-browse-ci [-c <commit>] [-p <pr>] [-r <remote>]
PARAMETERS
-c, --commit <commit-hash>
Open CI page for specific commit instead of latest
-p, --pr <PR-number>
Open CI for specific pull request
-r, --remote <name>
Use alternative remote (default: origin)
-h, --help
Show usage help
DESCRIPTION
git-browse-ci is a non-standard git extension or shell alias designed to quickly launch the Continuous Integration/Continuous Deployment (CI/CD) status page for the current git repository in the default web browser.
It detects the remote repository URL (typically from origin) and constructs platform-specific links, such as GitHub Actions, GitLab CI, or Travis CI dashboards. This saves developers time by avoiding manual navigation to CI interfaces during development workflows.
Commonly implemented as a bash/zsh function in ~/.bashrc or ~/.zshrc, it parses git remote get-url origin to extract owner/repo details and appends paths like /actions, /-/jobs, or /builds.
For example, on GitHub it opens https://github.com/owner/repo/actions. Supports fallbacks for multiple remotes or platforms via heuristics (e.g., github.com, gitlab.com in URL).
Ideal for teams using CI tools; enhances productivity but requires internet access and a configured git remote.
CAVEATS
Not a core git command; requires custom setup (alias/function). Platform-specific; may fail on private repos without auth or unsupported hosts. Needs xdg-open (Linux), open (macOS), or equivalent browser launcher.
EXAMPLE SETUP
Add to ~/.zshrc:git-browse-ci() {
local repo=$(git remote get-url origin | sed 's|git@github.com:|https://github.com/|;s|\.git$||')
open "$repo/actions"
}
ALTERNATIVES
Use gh run list --web (GitHub CLI) or glab ci view (GitLab CLI) for native support.
HISTORY
Emerged around 2018-2020 in developer dotfiles (e.g., on GitHub gists by @mathiasbynens, @sindresorhus). Gained traction with GitHub Actions launch (2019) and rise of GitHub CLI (gh). Variants in tools like git-extras or git-rocket.


