Skip to content

Instantly share code, notes, and snippets.

@davich
Created September 1, 2016 23:40
Show Gist options
  • Save davich/71999fc7f1e4658c745f40ac62ebcd95 to your computer and use it in GitHub Desktop.
Save davich/71999fc7f1e4658c745f40ac62ebcd95 to your computer and use it in GitHub Desktop.
#!/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