dependabot-common 0.108.1 → 0.108.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab78e821d702db0c5619cead9e090a87d28d6dd28ed8a80230fd2654cc3aeefa
|
4
|
+
data.tar.gz: 5fdb6735cd2c7b268ae5ae36d2322c16519f7abb678821622e9ca1202d8d6a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46fac999198b8c00b491c8e1ae32764a604d5e8ce04492ec10417b9d25189f66a2f636a2b88f45326abdb92237f2f719cf5d2624ec0a559456773b8a14aa9fdc
|
7
|
+
data.tar.gz: a23b354076feefa61a4f6a4ec701ec631bb7ac8c2c43e08d8c63b4877965c1b9f7cd74e8e033334b38a4325abfebd1a192bd4c796f07a1371bd490dc3f758d6e
|
@@ -108,7 +108,7 @@ module Dependabot
|
|
108
108
|
|
109
109
|
def uri_with_auth(uri)
|
110
110
|
bare_uri =
|
111
|
-
if uri.include?("git@") then uri.split("git@").last.sub(
|
111
|
+
if uri.include?("git@") then uri.split("git@").last.sub(%r{:/?}, "/")
|
112
112
|
else uri.sub(%r{.*?://}, "")
|
113
113
|
end
|
114
114
|
cred = credentials.select { |c| c["type"] == "git_source" }.
|
@@ -170,11 +170,16 @@ module Dependabot
|
|
170
170
|
else
|
171
171
|
create_branch(commit)
|
172
172
|
end
|
173
|
-
rescue Octokit::UnprocessableEntity
|
173
|
+
rescue Octokit::UnprocessableEntity => e
|
174
|
+
raise unless e.message.include?("Reference update failed //")
|
175
|
+
|
174
176
|
# A race condition may cause GitHub to fail here, in which case we retry
|
175
177
|
retry_count ||= 0
|
176
178
|
retry_count += 1
|
177
|
-
|
179
|
+
raise if retry_count > 10
|
180
|
+
|
181
|
+
sleep(rand(1..1.99))
|
182
|
+
retry
|
178
183
|
end
|
179
184
|
|
180
185
|
def create_branch(commit)
|
data/lib/dependabot/version.rb
CHANGED