LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-browse-ci

open the CI page of a repository in the browser

TLDR

Open the CI page for the current branch's remote
$ git browse-ci
copy
Open the CI page for a specific remote
$ git browse-ci [upstream]
copy

SYNOPSIS

git browse-ci [remote]

DESCRIPTION

git browse-ci is a git-extras helper that opens the continuous integration page for your repository in a web browser, saving a trip through the hosting provider's web interface.It works purely from the remote URL. The remote is normalized from either SSH (git@host:owner/repo.git) or HTTP form into a browsable URL, and a per-host suffix is appended to reach the CI section:- GitHub hosts get /actions- GitLab hosts get /-/pipelines- Bitbucket hosts get /addon/pipelines/homeThe resulting URL is handed to the platform's opener: open on macOS, start on Git-Bash, powershell.exe start under WSL, and xdg-open on Linux and the BSDs.

PARAMETERS

remote

The remote whose CI page to open. Defaults to the remote configured for the current branch, falling back to origin.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Only GitHub, GitLab and Bitbucket are recognized, and the match is a substring test against the remote URL. Self-hosted instances on a domain that does not contain one of those three words are not detected, and neither are standalone CI services such as CircleCI, Travis CI, Jenkins or Drone, regardless of what the repository actually uses.When the host is not recognized the CI URL ends up empty, and rather than reporting the problem the command asks the browser to open nothing.The URL is built by string manipulation on the remote, so it is a guess, not a lookup. It does not check whether CI is configured, or even whether the page exists.SSH remotes are rewritten to http:// rather than https://, relying on the host to redirect.

HISTORY

git browse-ci is part of git-extras, the collection of git helper scripts started by TJ Holowaychuk in 2010 and now community-maintained.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid