socialcast-git-extensions 2.2.6 → 2.2.7
Sign up to get free protection for your applications and to get access to all the features.
data/bin/git-reviewrequest
CHANGED
@@ -19,4 +19,4 @@ repo = `git config -z --get remote.origin.url`.strip
|
|
19
19
|
# ex: git@github.com:socialcast/socialcast-git-extensions.git
|
20
20
|
repo = repo.scan(/:(.+\/.+)\./).first.first
|
21
21
|
url = create_pull_request username, password, branch, repo
|
22
|
-
share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", url
|
22
|
+
share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'}
|
@@ -11,10 +11,11 @@ module Socialcast
|
|
11
11
|
HighLine.say "\n> <%= color('#{cmd.gsub("'", '')}', :red) %>"
|
12
12
|
raise "#{cmd} failed" unless system cmd
|
13
13
|
end
|
14
|
-
def share(message,
|
14
|
+
def share(message, options = {})
|
15
15
|
return if ARGV.delete("--quiet") || ARGV.delete("-q")
|
16
16
|
cmd = "socialcast share '#{message}'"
|
17
|
-
cmd += " --url #{url}" if url
|
17
|
+
cmd += " --url #{options[:url]}" if options[:url]
|
18
|
+
cmd += " --message_type #{options[:message_type]}" if options[:message_type]
|
18
19
|
run_cmd cmd
|
19
20
|
end
|
20
21
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 2.2.
|
9
|
+
- 7
|
10
|
+
version: 2.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-21 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: grit
|