dependabot-common 0.100.1 → 0.100.2

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: 652b6b22407da442324dfe813447652717d8a1474847c1f507d526ffe34ee1fe
4
- data.tar.gz: d267da22615e8971f02761a45bab24e55f6a82855455c77f9ae715067e37412e
3
+ metadata.gz: 19f528927c1884d55705973ba5851b44d3692d294c2646a6ebc671737a203695
4
+ data.tar.gz: cd103f0c2749f2db3b4fe72df0741463aa71596ab0544a11311a620fa31a0962
5
5
  SHA512:
6
- metadata.gz: e665f9996d95255cd9553cd224f2c50cd21b65fca9abcdd9be17ce63ca88d4d2d53b07181999ef29d4f0d0455d65bb904798d12141a8d4b9b196ffc52f062d3b
7
- data.tar.gz: 704bf0d0990608d2b331a548ab0267472287f885e7875d34372366f5925f639fa262c067940cbb93d83dcb18284cb0e1f554e3d21552bde2c75001a873b7b5d7
6
+ metadata.gz: d3ffc6d13ca64370b4ce74bc7780b52a6f49d36c9cad6393a5ef0f9fbd78273a6bbde9849d18b235171cf57e5b80797070bb22c88708e71c3eecb7f5c848e03a
7
+ data.tar.gz: 879e032677c7dac79541de121f62475644ee680d90459ef222aa7bbf71718962595034f0dc02df74cf8b9e6295957312cfc6f2b16ba39ed61c6471f10c3b4b2b
@@ -43,6 +43,11 @@ module Dependabot
43
43
  pull_request_number,
44
44
  base: target_branch
45
45
  )
46
+ rescue Octokit::UnprocessableEntity => e
47
+ # Return quietly if the PR has been closed
48
+ return nil if e.message.match?(/closed pull request/i)
49
+
50
+ raise
46
51
  end
47
52
 
48
53
  def github_client_for_source
@@ -133,12 +138,12 @@ module Dependabot
133
138
  commit.sha,
134
139
  true
135
140
  )
136
- rescue Octokit::UnprocessableEntity => error
141
+ rescue Octokit::UnprocessableEntity => e
137
142
  # Return quietly if the branch has been deleted
138
- return nil if error.message.match?(/Reference does not exist/i)
143
+ return nil if e.message.match?(/Reference does not exist/i)
139
144
 
140
145
  # Return quietly if the branch has been merged
141
- return nil if error.message.match?(/Reference cannot be updated/i)
146
+ return nil if e.message.match?(/Reference cannot be updated/i)
142
147
 
143
148
  raise
144
149
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.100.1"
4
+ VERSION = "0.100.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.100.1
4
+ version: 0.100.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot