socialcast-git-extensions 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
data/bin/git-reviewrequest
CHANGED
@@ -11,13 +11,14 @@ include Socialcast::Github
|
|
11
11
|
branch = current_branch
|
12
12
|
username = `git config -z --global --get github.user`.strip
|
13
13
|
password = HighLine.ask("Github password: ") { |q| q.echo = false }
|
14
|
+
description = HighLine.ask("Pull Request description (blank line to complete)") { |q| q.gather = /^\W*$/}
|
14
15
|
|
15
16
|
run_cmd 'git update'
|
16
17
|
|
17
18
|
repo = `git config -z --get remote.origin.url`.strip
|
18
19
|
# ex: git@github.com:socialcast/socialcast-git-extensions.git
|
19
20
|
repo = repo.scan(/:(.+\/.+)\./).first.first
|
20
|
-
url = create_pull_request username, password, branch, repo
|
21
|
+
url = create_pull_request username, password, branch, repo, description.join("\n")
|
21
22
|
|
22
23
|
if url
|
23
24
|
share "@SocialcastDevelopers #reviewrequest for #{branch} #scgitx", {:url => url, :message_type => 'review_request'}
|
@@ -3,8 +3,8 @@ require 'json'
|
|
3
3
|
|
4
4
|
module Socialcast
|
5
5
|
module Github
|
6
|
-
def create_pull_request(username, password, branch, repo)
|
7
|
-
payload = {:title => branch, :base => 'master', :head => branch}.to_json
|
6
|
+
def create_pull_request(username, password, branch, repo, body)
|
7
|
+
payload = {:title => branch, :base => 'master', :head => branch, :body => body}.to_json
|
8
8
|
begin
|
9
9
|
HighLine.say "Creating pull request for #{branch} against master in #{repo}"
|
10
10
|
response = RestClient::Request.new(:url => "https://api.github.com/repos/#{repo}/pulls", :method => "POST", :user => username, :password => password, :payload => payload, :headers => {:accept => :json, :content_type => :json}).execute
|
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: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
9
|
+
- 3
|
10
|
+
version: 2.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,12 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
@@ -29,12 +27,12 @@ dependencies:
|
|
29
27
|
segments:
|
30
28
|
- 0
|
31
29
|
version: "0"
|
30
|
+
requirement: *id001
|
31
|
+
prerelease: false
|
32
|
+
name: grit
|
32
33
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
36
|
-
prerelease: false
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
36
|
none: false
|
39
37
|
requirements:
|
40
38
|
- - ">="
|
@@ -43,12 +41,12 @@ dependencies:
|
|
43
41
|
segments:
|
44
42
|
- 0
|
45
43
|
version: "0"
|
44
|
+
requirement: *id002
|
45
|
+
prerelease: false
|
46
|
+
name: git_remote_branch
|
46
47
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
|
50
|
-
prerelease: false
|
51
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
49
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
51
|
requirements:
|
54
52
|
- - ">="
|
@@ -57,12 +55,12 @@ dependencies:
|
|
57
55
|
segments:
|
58
56
|
- 0
|
59
57
|
version: "0"
|
58
|
+
requirement: *id003
|
59
|
+
prerelease: false
|
60
|
+
name: highline
|
60
61
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
64
|
-
prerelease: false
|
65
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
63
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
66
64
|
none: false
|
67
65
|
requirements:
|
68
66
|
- - ">="
|
@@ -73,12 +71,12 @@ dependencies:
|
|
73
71
|
- 3
|
74
72
|
- 4
|
75
73
|
version: 0.3.4
|
74
|
+
requirement: *id004
|
75
|
+
prerelease: false
|
76
|
+
name: socialcast
|
76
77
|
type: :runtime
|
77
|
-
version_requirements: *id004
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
|
80
|
-
prerelease: false
|
81
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
79
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
80
|
none: false
|
83
81
|
requirements:
|
84
82
|
- - ">="
|
@@ -89,12 +87,12 @@ dependencies:
|
|
89
87
|
- 4
|
90
88
|
- 0
|
91
89
|
version: 1.4.0
|
90
|
+
requirement: *id005
|
91
|
+
prerelease: false
|
92
|
+
name: rest-client
|
92
93
|
type: :runtime
|
93
|
-
version_requirements: *id005
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
|
96
|
-
prerelease: false
|
97
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
96
|
none: false
|
99
97
|
requirements:
|
100
98
|
- - ">="
|
@@ -103,12 +101,12 @@ dependencies:
|
|
103
101
|
segments:
|
104
102
|
- 0
|
105
103
|
version: "0"
|
104
|
+
requirement: *id006
|
105
|
+
prerelease: false
|
106
|
+
name: json_pure
|
106
107
|
type: :runtime
|
107
|
-
version_requirements: *id006
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
|
-
|
110
|
-
prerelease: false
|
111
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
112
110
|
none: false
|
113
111
|
requirements:
|
114
112
|
- - "="
|
@@ -120,12 +118,12 @@ dependencies:
|
|
120
118
|
- 2
|
121
119
|
- 2
|
122
120
|
version: 0.9.2.2
|
121
|
+
requirement: *id007
|
122
|
+
prerelease: false
|
123
|
+
name: rake
|
123
124
|
type: :development
|
124
|
-
version_requirements: *id007
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
|
127
|
-
prerelease: false
|
128
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
126
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
129
127
|
none: false
|
130
128
|
requirements:
|
131
129
|
- - "="
|
@@ -136,8 +134,10 @@ dependencies:
|
|
136
134
|
- 11
|
137
135
|
- 3
|
138
136
|
version: 2.11.3
|
137
|
+
requirement: *id008
|
138
|
+
prerelease: false
|
139
|
+
name: shoulda
|
139
140
|
type: :development
|
140
|
-
version_requirements: *id008
|
141
141
|
description: GIT it done!
|
142
142
|
email:
|
143
143
|
- ryan@socialcast.com
|