git-whistles 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/HISTORY +2 -0
- data/bin/git-pull-request +3 -8
- data/lib/git-whistles/version.rb +1 -1
- metadata +4 -3
data/Gemfile.lock
CHANGED
data/HISTORY
ADDED
data/bin/git-pull-request
CHANGED
@@ -37,12 +37,7 @@ class App < Git::Whistles::App
|
|
37
37
|
die "You cannot issue a pull request to the same branch (#{options.from})."
|
38
38
|
end
|
39
39
|
|
40
|
-
|
41
|
-
query = {
|
42
|
-
:base_repo => repo,
|
43
|
-
:base_ref => options.to,
|
44
|
-
:head_ref => options.from
|
45
|
-
}
|
40
|
+
query = { }
|
46
41
|
|
47
42
|
# guess team name
|
48
43
|
if options.from =~ %r{^(\w+)/.*}
|
@@ -53,7 +48,7 @@ class App < Git::Whistles::App
|
|
53
48
|
|
54
49
|
# guess title.
|
55
50
|
title = options.from.split('/').last.split(/[_-]/).delete_if { |word| word =~ /^\d+$/ }.join(' ').capitalize
|
56
|
-
query[:title] = team ? "#{team}: #{title}" : title
|
51
|
+
query[:"pull_request[title]"] = team ? "#{team}: #{title}" : title
|
57
52
|
|
58
53
|
# add Pivotal infos
|
59
54
|
add_pivotal_info(query, $1.to_i) if options.from =~ /(\d+)$/
|
@@ -61,7 +56,7 @@ class App < Git::Whistles::App
|
|
61
56
|
query_string = query.map { |key,value|
|
62
57
|
"#{CGI.escape key.to_s}=#{CGI.escape value}"
|
63
58
|
}.join('&')
|
64
|
-
url = "https://github.com/#{repo}/
|
59
|
+
url = "https://github.com/#{repo}/compare/#{options.to}...#{options.from}?#{query_string}"
|
65
60
|
puts "Preparing a pull request for branch #{options.from}"
|
66
61
|
|
67
62
|
unless launch_browser(url)
|
data/lib/git-whistles/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-whistles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- .gitignore
|
127
127
|
- Gemfile
|
128
128
|
- Gemfile.lock
|
129
|
+
- HISTORY
|
129
130
|
- LICENSE
|
130
131
|
- README.md
|
131
132
|
- Rakefile
|
@@ -163,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
164
|
version: '0'
|
164
165
|
segments:
|
165
166
|
- 0
|
166
|
-
hash:
|
167
|
+
hash: 4357258647200684610
|
167
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
169
|
none: false
|
169
170
|
requirements:
|