-
-
Save davich/71999fc7f1e4658c745f40ac62ebcd95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Open Buildkite builds for the current repo and branch | |
repo = `git config --get remote.origin.url | sed -nE 's/.*\\.com[:\\/]?(.*)?/\\1/p' | sed -E 's/.git//'`.chomp | |
branch = ARGV.length > 0 ? ARGV[0] : `git rev-parse --abbrev-ref HEAD`.chomp | |
`open https://buildkite.com/#{repo}/builds?branch=#{branch}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment