dependabot-common 0.156.2 → 0.156.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd07772e79572ada00a739d972243b5b6d7f1227c4840fa1ad3c9c08071d70ea
4
- data.tar.gz: 507baa3a50e0c026482bc92edf487104111044d436656bd2b85f7fa4962d8f1a
3
+ metadata.gz: 02ce33c72dc474e777e3501d8595d859ffd3682992a83972815b655720b05c2e
4
+ data.tar.gz: 5e142e57878d0d754027055758c8dd48739817572dd53491e14dafbecad491ab
5
5
  SHA512:
6
- metadata.gz: c049d73a0fe2817647911fd59d085715700357da94a25ffd0aa0755a564cc8b55a0af87ca1fa1e8e13916ecfcd0ea2737ea1c634032e3403c8e65a90e1393776
7
- data.tar.gz: e98ce5a6f1ea387f02e75b867470cdd46640cec574ca1cb4eea37eb6bf74726a0ac1ad6a926f4d32ca8277a0720bd48f4135c0cac23f90ce2c7efca825fc9510
6
+ metadata.gz: dd44be8282356dcfaaaa76603730b2cc7a6e5c17ba87be886c015ad30629d86fea8ab29fd0cf5e3889f1f5fd37940656c66c2d3b832f8dd8f17fbafd75b4b1c4
7
+ data.tar.gz: bc44087b4f239e53bd327f356f0942fd0c114e4e5027c351a34f8ed3583142faac22d917688297d384bc1fac79e1869582c076b6c569e278287f123ea1617ef6
@@ -14,6 +14,10 @@ module Dependabot
14
14
 
15
15
  class BadGateway < StandardError; end
16
16
 
17
+ class Unauthorized < StandardError; end
18
+
19
+ class Forbidden < StandardError; end
20
+
17
21
  RETRYABLE_ERRORS = [InternalServerError, BadGateway, ServiceNotAvailable].freeze
18
22
 
19
23
  MAX_PR_DESCRIPTION_LENGTH = 3999
@@ -228,6 +232,8 @@ module Dependabot
228
232
  raise ServiceNotAvailable if response.status == 503
229
233
  end
230
234
 
235
+ raise Unauthorized if response.status == 401
236
+ raise Forbidden if response.status == 403
231
237
  raise NotFound if response.status == 404
232
238
 
233
239
  response
@@ -257,6 +263,8 @@ module Dependabot
257
263
  raise ServiceNotAvailable if response.status == 503
258
264
  end
259
265
 
266
+ raise Unauthorized if response.status == 401
267
+ raise Forbidden if response.status == 403
260
268
  raise NotFound if response.status == 404
261
269
 
262
270
  response
@@ -173,7 +173,8 @@ module Dependabot
173
173
 
174
174
  if e.message.match?(/protected branch/i) ||
175
175
  e.message.match?(/not authorized to push/i) ||
176
- e.message.match?(/must not contain merge commits/)
176
+ e.message.match?(/must not contain merge commits/) ||
177
+ e.message.match?(/required status check/i)
177
178
  raise BranchProtected
178
179
  end
179
180
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.156.2"
4
+ VERSION = "0.156.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.156.2
4
+ version: 0.156.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-25 00:00:00.000000000 Z
11
+ date: 2021-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -298,14 +298,14 @@ dependencies:
298
298
  requirements:
299
299
  - - "~>"
300
300
  - !ruby/object:Gem::Version
301
- version: 1.17.0
301
+ version: 1.18.0
302
302
  type: :development
303
303
  prerelease: false
304
304
  version_requirements: !ruby/object:Gem::Requirement
305
305
  requirements:
306
306
  - - "~>"
307
307
  - !ruby/object:Gem::Version
308
- version: 1.17.0
308
+ version: 1.18.0
309
309
  - !ruby/object:Gem::Dependency
310
310
  name: simplecov
311
311
  requirement: !ruby/object:Gem::Requirement