dependabot-common 0.95.54 → 0.95.55
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_creator/github.rb +19 -7
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1719ff6cde17a1b89f4137d99087062afc7cac00142d7cead53d99233d3d3aed
|
4
|
+
data.tar.gz: 66dff3999fabbd62874b66c782882bc3d2b4822ed4d324fbc17d03d3de9d8733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a748ceff58499242fa7f1ba7d1d8a06817b3dcd55afa77a4ecbbf59dc9e8a252be36be2563bae2635e8f3e01e9cc7ce763fbf8ad78e01c8b65f663291b3a6e3
|
7
|
+
data.tar.gz: c9991d1b53df730114c65bd682cb01ff556b301cfce4ef7c93c4711637b9c7af43718ccab2c581db14dcc1a37b4ed4b31065e28fce007ad6f325f4f73719ab01
|
@@ -114,13 +114,25 @@ module Dependabot
|
|
114
114
|
options[:signature] = commit_signature(tree, options[:author])
|
115
115
|
end
|
116
116
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
117
|
+
begin
|
118
|
+
github_client_for_source.create_commit(
|
119
|
+
source.repo,
|
120
|
+
commit_message,
|
121
|
+
tree.sha,
|
122
|
+
base_commit,
|
123
|
+
options
|
124
|
+
)
|
125
|
+
rescue Octokit::UnprocessableEntity => error
|
126
|
+
raise unless error.message == "Tree SHA does not exist"
|
127
|
+
|
128
|
+
# Sometimes a race condition on GitHub's side means we get an error
|
129
|
+
# here. No harm in retrying if we do.
|
130
|
+
# NOTE: Error here might be that the tree got deleted somehow. If it's
|
131
|
+
# that we'll need to change this retry to recreate the tree, too.
|
132
|
+
retry_count ||= 0
|
133
|
+
retry_count += 1
|
134
|
+
retry_count > 3 ? raise : retry
|
135
|
+
end
|
124
136
|
end
|
125
137
|
|
126
138
|
def create_tree
|
data/lib/dependabot/version.rb
CHANGED
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.95.
|
4
|
+
version: 0.95.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ecr
|