Sha256: 55668ab5e8a55a236200e6f65311604428740d4bc35ac525725c9107821255b2
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
#!/usr/bin/env ruby # create a github review request for the current branch # usage: # git reviewrequest require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb') include Socialcast::Git include Socialcast::Github branch = current_branch username = `git config -z --global --get github.user`.strip password = HighLine.ask("Github password: ") { |q| q.echo = false } run_cmd 'git update' repo = `git config -z --get remote.origin.url`.strip # ex: git@github.com:socialcast/socialcast-git-extensions.git repo = repo.scan(/:(.+\/.+)\./).first.first url = create_pull_request username, password, branch, repo if url share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'} else HighLine.say "Skipping socialcast announcement" exit 1 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialcast-git-extensions-2.3.2 | bin/git-reviewrequest |