git-whistles 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-whistles (0.7.3)
4
+ git-whistles (0.7.4)
5
5
  pivotal-tracker (~> 0.5.6)
6
6
  term-ansicolor
7
7
 
data/HISTORY ADDED
@@ -0,0 +1,2 @@
1
+ # 2013-06-18: 0.7.4
2
+ * [FIX] Adjusted git-pull-request to play with the new GitHub pull request user interface
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
- # build the base query
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}/pull/new?#{query_string}"
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)
@@ -4,7 +4,7 @@ require 'pathname'
4
4
 
5
5
  module Git
6
6
  module Whistles
7
- VERSION = "0.7.3"
7
+ VERSION = "0.7.4"
8
8
  GEMDIR = Pathname.new(__FILE__).parent.parent.parent
9
9
  end
10
10
  end
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.3
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-06 00:00:00.000000000 Z
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: 3873880712353176680
167
+ hash: 4357258647200684610
167
168
  required_rubygems_version: !ruby/object:Gem::Requirement
168
169
  none: false
169
170
  requirements: