cmd/merge-homebrew.rb
# Open a pull request using hub.
Open a pull request using hub.
Open a pull request using hub .
def hub_pull_request(branch, message)
    hub_version = Utils.popen_read("hub", "--version")[/hub version ([0-9.]+)/, 1]
    odie "Please install hub:\n  brew install hub" unless hub_version
    odie "Please upgrade hub:\n  brew upgrade hub" if Version.new(hub_version) < "2.3.0"
    remote = ENV["HOMEBREW_GITHUB_USER"] || ENV["USER"]
    safe_system git, "push", remote, "HEAD:#{branch}"
    safe_system "hub", "pull-request", "-f", "-h", "#{remote}:#{branch}", "-m", message,
      "-a", remote, "-l", "merge",
      *("--browse" if Homebrew.args.browse?)
  end
def hub_pull_request ( branch , message ) hub_version = Utils . popen_read ( "hub" , "--version" ) [ / hub version ([0-9.]+) / , 1 ] odie "Please install hub:\n  brew install hub" unless hub_version odie "Please upgrade hub:\n  brew upgrade hub" if Version . new ( hub_version ) < "2.3.0" remote = ENV [ "HOMEBREW_GITHUB_USER" ] || ENV [ "USER" ] safe_system git , "push" , remote , "HEAD:#{branch}" safe_system "hub" , "pull-request" , "-f" , "-h" , "#{remote}:#{branch}" , "-m" , message , "-a" , remote , "-l" , "merge" , * ( "--browse" if Homebrew . args . browse? ) end
Open a pull request using hub.
Open a pull request using hub .
branch
<not_specific>
message
<not_specific>