dependabot-common 0.98.36 → 0.98.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/pull_request_updater/github.rb +19 -7
- data/lib/dependabot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9769c1b6da23ea689247a463bcfece410e0ce00e5ff57e7cc7a22dfa177035b
|
4
|
+
data.tar.gz: 2efdf61d9e64e70555a7cbcf4ff8a0150a91ac24f81d462c3d38fbf6cca9cbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15343d42800acf6c5b14d66f0ab8e233f5dbaf82d2f6f46bce1343b726b52290f223478bad83830833a3f7e7ca59225da9b6029bfaa12c412951b52eab3c82cb
|
7
|
+
data.tar.gz: 21d8495b966dbd6db085409f4d4b2b7350852b07e3dd524de2ece08e767a6d24f989150135fce1f13f331530d62a593f8449c0b4681b55e52b768e2cfcd0209c
|
@@ -77,13 +77,25 @@ module Dependabot
|
|
77
77
|
options[:signature] = commit_signature(tree, options[:author])
|
78
78
|
end
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
80
|
+
begin
|
81
|
+
github_client_for_source.create_commit(
|
82
|
+
source.repo,
|
83
|
+
commit_message,
|
84
|
+
tree.sha,
|
85
|
+
base_commit,
|
86
|
+
options
|
87
|
+
)
|
88
|
+
rescue Octokit::UnprocessableEntity => error
|
89
|
+
raise unless error.message == "Tree SHA does not exist"
|
90
|
+
|
91
|
+
# Sometimes a race condition on GitHub's side means we get an error
|
92
|
+
# here. No harm in retrying if we do.
|
93
|
+
# NOTE: Error here might be that the tree got deleted somehow. If it's
|
94
|
+
# that we'll need to change this retry to recreate the tree, too.
|
95
|
+
retry_count ||= 0
|
96
|
+
retry_count += 1
|
97
|
+
retry_count > 3 ? raise : retry
|
98
|
+
end
|
87
99
|
end
|
88
100
|
|
89
101
|
def create_tree
|
data/lib/dependabot/version.rb
CHANGED