Skip to content

Instantly share code, notes, and snippets.

View rachelgraves's full-sized avatar

Rachel Graves rachelgraves

View GitHub Profile
@rachelgraves
rachelgraves / upgrade.rb
Created August 26, 2024 11:52
upgrade jumpstart
#!/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}`