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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97bd99b864a1ea92857505f8db680abb50269f63
4
- data.tar.gz: 0bb4aab8d760c817b6ab5764ee6b83a33d2644b2
3
+ metadata.gz: c9275497e20b34cba7ac89c0db7d08f699d6a96c
4
+ data.tar.gz: 92c007f9f03799a3df8d6e8d0b12bfce33c4d8ac
5
5
  SHA512:
6
- metadata.gz: 81f126fbfdee26e44f4a2eee7dd4e32c89ff062259c1b42ae549386fd2c92af2f50e7d584eebe716fd498482d2c688f69d7904a46a6f606ec48fc44a98ad7399
7
- data.tar.gz: 4660ca0e8626739f69aab38641800b0cba1b1e5cbe5ae70bd7bdd76670e00949a122ea141e607fb9d482630bd11d9e6aae9da1fd9b65ce90142872922da802e1
6
+ metadata.gz: 9908ddb0ecddee720f7dd3d7a5b02877fbc421e037b66a954834c17f0d68e03a9e4e778365e2f788c50966fd38841b499ebd679545ca245a8653e67c64394622
7
+ data.tar.gz: e509f66c1fe50c8ef0b8faf091a10a146c01285f3a30d2e22d6e48797900ccab0976895aed3c455a957e2396062aef8ee8afcc977512611ff9a44fa1d0289d50
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'committer-tools'
5
- spec.version = '0.1.8'
5
+ spec.version = '0.1.9'
6
6
  spec.authors = 'Jon Moss'
7
7
  spec.email = 'me@jonathanmoss.me'
8
8
 
@@ -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
- while !lgtm do
27
- sleep
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
- puts "Please enter PR ID:"
166
- pr_id = gets.strip!
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.8
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-03 00:00:00.000000000 Z
11
+ date: 2017-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client