committer-tools 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/committer-tools.gemspec +1 -1
- data/lib/committer-tools.rb +14 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9275497e20b34cba7ac89c0db7d08f699d6a96c
|
4
|
+
data.tar.gz: 92c007f9f03799a3df8d6e8d0b12bfce33c4d8ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9908ddb0ecddee720f7dd3d7a5b02877fbc421e037b66a954834c17f0d68e03a9e4e778365e2f788c50966fd38841b499ebd679545ca245a8653e67c64394622
|
7
|
+
data.tar.gz: e509f66c1fe50c8ef0b8faf091a10a146c01285f3a30d2e22d6e48797900ccab0976895aed3c455a957e2396062aef8ee8afcc977512611ff9a44fa1d0289d50
|
data/committer-tools.gemspec
CHANGED
data/lib/committer-tools.rb
CHANGED
@@ -21,10 +21,15 @@ class Lander
|
|
21
21
|
introduce_commit(github_pr, metadata)
|
22
22
|
|
23
23
|
puts "[\u{2714}] Commit(s) applied locally. Please update to your liking, and then type 'lgtm'."
|
24
|
-
lgtm = gets.strip!
|
25
24
|
|
26
|
-
|
27
|
-
|
25
|
+
if ENV['BOT'] && ENV['BOT'] == 'bot'
|
26
|
+
lgtm = "lgtm"
|
27
|
+
else
|
28
|
+
lgtm = gets.strip!
|
29
|
+
|
30
|
+
while !lgtm do
|
31
|
+
sleep
|
32
|
+
end
|
28
33
|
end
|
29
34
|
|
30
35
|
if lgtm && lgtm == 'lgtm'
|
@@ -162,8 +167,12 @@ class Preparer
|
|
162
167
|
end
|
163
168
|
|
164
169
|
def get_pr
|
165
|
-
|
166
|
-
|
170
|
+
if ENV['BOT'] && ENV['BOT'] == 'bot'
|
171
|
+
pr_id = ENV['COMMITTER_TOOLS_PR_ID']
|
172
|
+
else
|
173
|
+
puts "Please enter PR ID:"
|
174
|
+
pr_id = gets.strip!
|
175
|
+
end
|
167
176
|
|
168
177
|
begin
|
169
178
|
org, repo_and_id = pr_id.split('/')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: committer-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Moss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|