This file contains hidden or 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 | |
require "date" | |
# Configure the GitHub client | |
repository = `git config --get remote.origin.url`.split(":").last.strip.chomp(".git") | |
`gh repo set-default #{repository}` | |
# Do all the fun things | |
branch = "jumpstart-pro-upgrade-#{Date.today.strftime("%Y-%m-%d")}" | |
branch_exists = !!`git branch | grep -w #{branch}` |