tutter-jenkins 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDBlYzI2MTJlYjE2YjA3MGIxNTdlMDAwMmIwZTllNDIwMmRmMTk4Zg==
4
+ YzUwOTJkM2NlZmNiNmVlOGYwMDQ1N2RkN2M1NmQwOGIzNWZjZDQ5Ng==
5
5
  data.tar.gz: !binary |-
6
- NWRmZDMxMzEyNGMyOTEyMTkwYjE0M2IxNzRmZDVlNjU4N2QwM2JlYQ==
6
+ NTZjZTEzZTdkMjdjMDhmNTM2N2I0MmM3OTZkYzhjYWExMmYyNzAxMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTEzYzgzZjY3Mzg3YjliNjYwOGM5M2Q2MGEzNmRmNjI1ZDQxMWJmNzNjNzdi
10
- NDUwYjZhOWUwZmFkYTM2MTkxNTFkN2U4NGQzYTM2NzcyMjk4YmQ1N2UwM2Ex
11
- YTRlMmIzZDBlMjc4MDc4ZjEyMzEwNDA0ZmRkNDhlNTUwMmNkYjU=
9
+ NmU1MGQ4MjdjMDFhODE4NjBkYjdkYjM4NTI5ZDhiODczN2U2ZWMxYWRkMTcw
10
+ NGNkMGNhOWQzZTI0NDZiZjcwMDdkZTkyNjc4OTUwNGQxZDcwY2QzZjhlNTdj
11
+ MjNiNjU2MDgzOWJjODllMjFmZTc4NzhiMzkxM2IwZTgyMzRhNTI=
12
12
  data.tar.gz: !binary |-
13
- ZjY4YzM5NGExYTExMTE3YzIzZmMxMmZlOTI3ZDNlNmZlMTEzNzkxYjUzOWNi
14
- ZjdmM2Y1ODFlYTI1NjE1NDY3NDc3MzlhMDA0MWNjYWNiNzNiMzU2MmZiZjdm
15
- MDZhNDQ2NzRiOTg5NTBkZTI1NjE4M2M0NDEwNWYyN2JhMTU4ZTM=
13
+ MTMzYWNmYjMzODFhMzgzZjU2NDkwYmM3MjFhYmQxOGEzMjhmZDYwNGQ5YjMx
14
+ ODc3ZDY4MTU3NWMyOTgxYzE1MGUyNzYyYmMwYTBlN2FjYTI0YzdmODg5NDFl
15
+ YjkwZmY3MjYzMDliODZiMzNiY2FiYWQyMmRmNjRiNjUzZTNlZWE=
data/.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'tutter-jenkins'
4
- s.version = '0.0.3'
4
+ s.version = '0.0.4'
5
5
  s.author = 'Alexey Lapitsky'
6
6
  s.email = ['alexey@spotify.com']
7
7
  s.homepage = 'https://github.com/spotify/tutter-jenkins'
@@ -12,6 +12,11 @@ class Jenkins
12
12
  pull_request_id = @data['issue']['number']
13
13
  puts "pull request id: #{pull_request_id}"
14
14
 
15
+ if @data['issue']['state'] != 'open'
16
+ puts "The issue state is #{@data['issue']['state']}"
17
+ return false
18
+ end
19
+
15
20
  comments = @client.issue_comments(@project, pull_request_id)
16
21
  last_comment = comments.last
17
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter-jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Lapitsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This tutter action let non collaborators review and merge code without
14
14
  having more then read access to the project