fastlane-plugin-wpmreleasetoolkit 14.11.2 → 14.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a1f1e623158a6faef2f63c3376a61d70cdcee25c70ebf91802d0cebdacef0a2
4
- data.tar.gz: af2b3f68f2cc761f05a88c676bad63b12b55b44944052e11fe04b210c3421102
3
+ metadata.gz: 07aea16b1fb8656819d8dd16269523c9ba32a6fdd6fa6c60caa2765119d80c02
4
+ data.tar.gz: 1058fad8effd34bf07937e702748a934d2420cf0f171ef8a21dc1de5fe03447e
5
5
  SHA512:
6
- metadata.gz: daf03a722ae1f03c8b9883a7552ca75d575ff059233eed51cb9368686bf4007a816ac193f89a4892f9d1d36ab3fe0d51ad8e09dd2ad2d0301144db006b478258
7
- data.tar.gz: 9c0edbfe34703dbf6dace3a805dc22f639cbd861d8d8f3615129eca857000ce9d516e159bff6413f45c92e2cff5dfd43c9c35a6fedcaef6369f6158e856d2f38
6
+ metadata.gz: e121905842c5f0226f8a7c2d35ac4a3dc5386d93650d96347a8862cd31964807f58fb1cdc62225c365e59ab7071b96ccdbb4199e96433ba4955d1054aa5227a1
7
+ data.tar.gz: 709be6a17688a4cd77e63d9822671b8edabe163091024e40c44ef12ac4e194294f93226eee812bee27e19eb1c3fea714e194afdb73221513351fbb994262fcc0
@@ -267,13 +267,13 @@ module Fastlane
267
267
  #
268
268
  # @param [String] branch_name The name of the remote branch to delete.
269
269
  # @param [String] remote_name The name of the remote to delete the branch from. Defaults to 'origin'
270
- # @return [Boolean] true if the branch was deleted, false if not (e.g. no such local branch existed in the first place)
270
+ # @return [Boolean] true if the branch was deleted, false if it did not exist on the remote
271
271
  #
272
272
  def self.delete_remote_branch_if_exists!(branch_name, remote_name: 'origin')
273
- git_repo = Git.open(Dir.pwd)
274
- return false unless git_repo.branches.any? { |b| b.remote&.name == remote_name && b.name == branch_name }
273
+ return false unless branch_exists_on_remote?(branch_name: branch_name, remote_name: remote_name)
275
274
 
276
- git_repo.push(remote_name, branch_name, delete: true)
275
+ Git.open(Dir.pwd).push(remote_name, branch_name, delete: true)
276
+ true
277
277
  end
278
278
 
279
279
  # Checks whether a given path is ignored by Git, relying on Git's `check-ignore` under the hood.
@@ -3,6 +3,6 @@
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
5
  NAME = 'fastlane-plugin-wpmreleasetoolkit'
6
- VERSION = '14.11.2'
6
+ VERSION = '14.11.3'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.11.2
4
+ version: 14.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic