tutter-sppuppet 1.2.8 → 1.2.9

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
- YjRjNWM2NzU3ODE1ZjdiYmY5Y2ExZTMzOGYwZTI0MjVlMWQwMTk4Yg==
4
+ MGM1ZGU5ODBlYWU5MjliZjQ3ZDYzMzNjOTY3OTIyM2Q3ZTM5Njg2OQ==
5
5
  data.tar.gz: !binary |-
6
- MmFmNmE5ODgyY2EzZWUzNjY5MTJmZjgxMjk5MDNmMDM0OWYyMTEzNw==
6
+ MGMxZTJlYjEwOGY3NThhNjIyMGU2ZjQ3MDM2NDk2MmM4NDQwODQ3Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGM1YTE2OGFhNTczM2ExYTM3OWFiZWExZWMzYmM2Nzc4NTdhMzVlNjJlZjIx
10
- NjQ5YTA4MTFmZTAzOWIwYmIwODc2Mzc5NzYwZmNlMDI5NzcyY2I0YmI4ODhl
11
- ZDczYjc5ZTM5MTkxMzE4ZDlmNjFmZTNlZTNlNGM4NDNkNzk4NTU=
9
+ YjBjNjRjNGNiMjEzZDYwODBhYTI2NGFhNDYzZTU3MTZjNjg0ZTA3M2EwMjlj
10
+ YjMwYWNjNzcwMWYwMGRlZWM0NGU3NDUyNmJmMTA2ZjA4ZjZiNDdlMmRiZTlj
11
+ NjQ2ZWFhNTNhYTRkZWUxNzhmMTA2YjBhYWU1MDVhY2EzZDNjNmE=
12
12
  data.tar.gz: !binary |-
13
- OTA3ZmE0OGY3MWQ0ZTE3NzNiODc5YTI4MDk0NjIwZjllZjgzMTUxMWUxMmYy
14
- ZmQzY2E2Y2FiYjNhYmQzZDQzNjIzNjFmOTU3ZWMwZjY1MjA4MTNjMGVjMDQ1
15
- ZDRhOThkMDAwYjM4ODhlNTk1ZTc0YTcyMTI3YWQ0Y2ViYWEzYjA=
13
+ YzNjZDM2MjA0YmNhZDBlNmFlZTYyYjdlZmZkMzgwYWQ3YmIwMzk2ZWQ1NTli
14
+ ZjdjNmY1NmQwOTA5NTJjNDcwNGE4YjVkNzBkOWVlOTAxZTMzNjkyMjQ4ZGE1
15
+ YTEwYTk1ZDZkMzFhZjkyYWYzZDE4MDMzYzM1ZjZhNDdmZDMxNTI=
@@ -101,7 +101,7 @@ class Sppuppet
101
101
  end
102
102
 
103
103
  if DELETE_BRANCH_COMMENT.match(i.body)
104
- @branch_to_delete = pr.head
104
+ @delete_branch = true
105
105
  end
106
106
 
107
107
  if PLUS_VOTE.match(i.body) && pr.user.login != commenter
@@ -171,7 +171,7 @@ MERGE_MSG
171
171
  begin
172
172
  merge_commit = @client.merge_pull_request(@project, pull_request_id, merge_msg)
173
173
  # If a owner posted a chop comment and was successfully merged delete the branch ref
174
- @client.delete_branch(@project, @branch_to_delete) if @branch_to_delete
174
+ @client.delete_branch(pr.head.repo.full_name, pr.head.ref) if @delete_branch
175
175
  rescue Octokit::MethodNotAllowed => e
176
176
  return post_comment(pull_request_id, "Pull request not mergeable: #{e.message}")
177
177
  end
@@ -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.8'
4
+ s.version = '1.2.9'
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.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals