tutter-sppuppet 1.2.3 → 1.2.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
- MzA2ZjQ5ODc0ZDk5N2U2NTEzNWRjODMwOWQ0MmUzYWExNjVhYjFhNA==
4
+ MDRjMDAyNDA0M2E2OGRhOTJmYzI4MjQ3NDJlNmIxMWI0YzE0N2E0Zg==
5
5
  data.tar.gz: !binary |-
6
- ZWU0YTgyNGViZWI5M2RlZTRkZmYyZjg3YWI0NzQ3MTliOTNiODcxOQ==
6
+ MDE5OTdkODc0ZTRlODViYjU4YmFmMWQwYTk1ZjJmNDQ1ZDBlYzEzZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTExZGY2ZDU0Y2NkNWVhMDBkOWZjYWI5YzljN2VlNGJjMTA5NjQ0MzUwNmU5
10
- ODk1ZmY3MDhkMjdiYzJhOTExYmU3ZmQ0MmI0ZTY2ZjYyMDhmOWVlMWZmNDcz
11
- MmVjNmJlNjE5ODM0ZGUwMzM3ZjUxZmQ4MTlhNmFiNmYzZDMxYWQ=
9
+ ZWQzM2RlYzQ2NjIyNzNkZWI4OGU2MjM5NWNjZmY5YjgyMjVjMDdiMmIyZDNk
10
+ ODdhMDg1OWM5ZGZjODVhOGFmNzI0N2NiYjg4ZTgzMzhjZGU1NjllNTQ3MGUz
11
+ YWYyYTcxZGM1OTlkNjQ3NGNmMmFhNmI3OTQ3NGRiMzIyZWFmY2U=
12
12
  data.tar.gz: !binary |-
13
- NDkzMjBhOWRmMjc2ZDgxOTE0OTNjZjYwNDI1YTUxOWQ0OTY5YjA4ZTBjNjZl
14
- MTNjMjU0ODMwMDliNmI2ZDczMzZhOGM0NDIwNjI2NmRhMTlkMmM0MTU0MTNl
15
- ZjBhMDQ4NjQ1ZTg1NTA2ZTMzM2Y0ZDc2YmE4OGJjODI1ZWFjMTY=
13
+ NjZiZmVkMWRlNzVjYzY3YWM2YjgzY2U1ZThiMmNjOWM0MGQzZjE4YjE4NTA0
14
+ NDdkN2ZiNjM5ODgzNjM3ZmVhMWVmODhkMzJhNTljMjY2OWY5Y2NhNjA2M2Mw
15
+ YzY5ZDQzZjlmNzc4NGMzZGFhMTQ0YmVkZjlkM2FmZjczOTA4YTk=
@@ -26,8 +26,11 @@ class Sppuppet
26
26
  return 200, 'not a new comment, skipping'
27
27
  end
28
28
 
29
- pull_request_id = @data['issue']['number']
29
+ if @data['sender']['login'] == @client.user.login
30
+ return 200, 'Skipping own comment'
31
+ end
30
32
 
33
+ pull_request_id = @data['issue']['number']
31
34
  merge_command = MERGE_COMMENT.match(@data['comment']['body'])
32
35
 
33
36
  return 200, 'Not a merge comment' unless merge_command
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'tutter-sppuppet'
4
- s.version = '1.2.3'
4
+ s.version = '1.2.4'
5
5
  s.author = ['Johan Haals', 'Erik Dalén', 'Alexey Lapitsky']
6
6
  s.email = ['johan.haals@gmail.com', 'dalen@spotify.com', 'alexey@spotify.com']
7
7
  s.homepage = 'https://github.com/jhaals/tutter-sppuppet'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter-sppuppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-13 00:00:00.000000000 Z
13
+ date: 2015-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tutter