Sha256: f084d39502c8d638eabfcbccb5f44920e6889c598f4516297a19a5bdfcd00bcb

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 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::Gitx
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialcast-git-extensions-2.2.6 bin/git-reviewrequest
socialcast-git-extensions-2.2.5 bin/git-reviewrequest