Created
October 11, 2013 03:35
-
-
Save chsh/6929213 to your computer and use it in GitHub Desktop.
Open Pivotal Tracker url from feature/nnnnnnn.
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 | |
branch = `git rev-parse --abbrev-ref HEAD`.chomp | |
if branch =~ /^feature\/(\d+)$/ | |
url = "http://www.pivotaltracker.com/story/show/#{$1}" | |
puts "Open #{url}" | |
exec "open #{url}" | |
else | |
puts "Ignore. Tracker branch should be feature/nnnnnnn." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment