git_reflow 0.2.4 → 0.2.5
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 +11 -9
- data/lib/git_reflow/commands/deliver.rb +3 -0
- data/lib/git_reflow/version.rb +1 -1
- data/lib/git_reflow.rb +5 -5
- metadata +5 -5
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_reflow (0.2.
|
4
|
+
git_reflow (0.2.5)
|
5
5
|
colorize (= 0.5.8)
|
6
6
|
github_api (= 0.7.0)
|
7
7
|
gli (= 2.1.0)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
gherkin (~> 2.11.0)
|
29
29
|
json (>= 1.4.6)
|
30
30
|
diff-lcs (1.1.3)
|
31
|
-
faraday (0.8.
|
31
|
+
faraday (0.8.6)
|
32
32
|
multipart-post (~> 1.1)
|
33
33
|
ffi (1.1.5)
|
34
34
|
gherkin (2.11.2)
|
@@ -43,8 +43,8 @@ GEM
|
|
43
43
|
gli (2.1.0)
|
44
44
|
hashie (1.2.0)
|
45
45
|
highline (1.6.15)
|
46
|
-
httpauth (0.
|
47
|
-
httpclient (2.
|
46
|
+
httpauth (0.2.0)
|
47
|
+
httpclient (2.3.3)
|
48
48
|
jeweler (1.8.4)
|
49
49
|
bundler (~> 1.0)
|
50
50
|
git (>= 1.2.5)
|
@@ -53,16 +53,18 @@ GEM
|
|
53
53
|
json (1.7.5)
|
54
54
|
jwt (0.1.5)
|
55
55
|
multi_json (>= 1.0)
|
56
|
-
multi_json (1.
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
multi_json (1.6.1)
|
57
|
+
multi_xml (0.5.3)
|
58
|
+
multipart-post (1.2.0)
|
59
|
+
nokogiri (1.5.6)
|
60
|
+
oauth2 (0.9.1)
|
60
61
|
faraday (~> 0.8)
|
61
62
|
httpauth (~> 0.1)
|
62
63
|
jwt (~> 0.1.4)
|
63
64
|
multi_json (~> 1.0)
|
65
|
+
multi_xml (~> 0.5)
|
64
66
|
rack (~> 1.2)
|
65
|
-
rack (1.
|
67
|
+
rack (1.5.2)
|
66
68
|
rake (0.9.2.2)
|
67
69
|
rdoc (3.12)
|
68
70
|
json (~> 1.4)
|
@@ -2,6 +2,8 @@ desc 'deliver your feature branch'
|
|
2
2
|
long_desc 'merge your feature branch down to your base branch, and cleanup your feature branch'
|
3
3
|
|
4
4
|
command :deliver do |c|
|
5
|
+
c.desc 'skip the lgtm checks and deliver your feature branch'
|
6
|
+
c.switch [:f, :'skip-lgtm']
|
5
7
|
c.desc 'merge your feature branch down to your base branch, and cleanup your feature branch'
|
6
8
|
c.arg_name 'base_branch - the branch you want to merge into'
|
7
9
|
c.action do |global_options,options,args|
|
@@ -13,6 +15,7 @@ command :deliver do |c|
|
|
13
15
|
when 1
|
14
16
|
deliver_options['base'] = args[0]
|
15
17
|
end
|
18
|
+
deliver_options.merge({'skip_lgtm' => options[:'skip-lgtm']})
|
16
19
|
GitReflow.deliver deliver_options
|
17
20
|
end
|
18
21
|
end
|
data/lib/git_reflow/version.rb
CHANGED
data/lib/git_reflow.rb
CHANGED
@@ -77,9 +77,9 @@ module GitReflow
|
|
77
77
|
open_comment_authors = find_authors_of_open_pull_request_comments(existing_pull_request)
|
78
78
|
|
79
79
|
# if there any comment_authors left, then they haven't given a lgtm after the last commit
|
80
|
-
if open_comment_authors.empty?
|
80
|
+
if open_comment_authors.empty? or options['skip-lgtm']
|
81
81
|
lgtm_authors = comment_authors_for_pull_request(existing_pull_request, :with => LGTM)
|
82
|
-
commit_message = get_first_commit_message
|
82
|
+
commit_message = existing_pull_request[:body] || get_first_commit_message
|
83
83
|
puts "Merging pull request ##{existing_pull_request.number}: '#{existing_pull_request.title}', from '#{existing_pull_request.head.label}' into '#{existing_pull_request.base.label}'"
|
84
84
|
|
85
85
|
update_destination(options['base'])
|
@@ -210,9 +210,9 @@ module GitReflow
|
|
210
210
|
comment_created_at = Time.parse(comment.created_at)
|
211
211
|
if comment_created_at > pull_last_committed_at
|
212
212
|
if comment[:body] =~ LGTM
|
213
|
-
lgtm_authors
|
213
|
+
lgtm_authors |= [comment.user.login]
|
214
214
|
else
|
215
|
-
comment_authors
|
215
|
+
comment_authors |= [comment.user.login] unless comment_authors.include?(comment.user.login)
|
216
216
|
end
|
217
217
|
else
|
218
218
|
comment_authors -= [comment.user.login] if comment_authors.include?(comment.user.login)
|
@@ -230,7 +230,7 @@ module GitReflow
|
|
230
230
|
|
231
231
|
all_comments.each do |comment|
|
232
232
|
next if options[:after] and Time.parse(comment.created_at) < options[:after]
|
233
|
-
comment_authors
|
233
|
+
comment_authors |= [comment.user.login] if !comment_authors.include?(comment.user.login) and (options[:with].nil? or comment[:body] =~ options[:with])
|
234
234
|
end
|
235
235
|
|
236
236
|
# remove the current user from the list to check
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_reflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-03-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -255,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
segments:
|
257
257
|
- 0
|
258
|
-
hash: -
|
258
|
+
hash: -3553381225246812940
|
259
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
260
|
none: false
|
261
261
|
requirements:
|
@@ -264,10 +264,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
264
|
version: '0'
|
265
265
|
segments:
|
266
266
|
- 0
|
267
|
-
hash: -
|
267
|
+
hash: -3553381225246812940
|
268
268
|
requirements: []
|
269
269
|
rubyforge_project:
|
270
|
-
rubygems_version: 1.8.
|
270
|
+
rubygems_version: 1.8.25
|
271
271
|
signing_key:
|
272
272
|
specification_version: 3
|
273
273
|
summary: A better git process
|