Sha256: 98187b894284ea1eb506ff7aad683ae3bbf92111dcc99b5a00cb452a83303414
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 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 share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
socialcast-git-extensions-2.3.0 | bin/git-reviewrequest |
socialcast-git-extensions-2.2.13 | bin/git-reviewrequest |