Skip to content

Instantly share code, notes, and snippets.

@jottenlips
Last active September 16, 2019 18:54
Show Gist options
  • Save jottenlips/4d6e5d8638dbe6cd3aaf79d03c1d519d to your computer and use it in GitHub Desktop.
Save jottenlips/4d6e5d8638dbe6cd3aaf79d03c1d519d to your computer and use it in GitHub Desktop.
♺ Opens Circle CI from your git repo.
$ touch circleci.sh
$ vim circleci.sh

i

paste the snippet

:wq write quite in vim

Add alias circleci='sh ~/circleci.sh $1' to your .bash_profile with vim or your favorite editor.

Call by

$ circleci myorginizationname
#!/usr/bin/env bash
open https://circleci.com/gh/$1/$(basename `git rev-parse --show-toplevel`)/tree/$(echo `git symbolic-ref --short HEAD`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment