dependabot-common 0.112.30 → 0.112.35
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8858129af84343b3ac40f41ad4b34bc2d8550086300d75436f4f398254dd0490
|
4
|
+
data.tar.gz: 6ec24603b50a6fb4a9ab368338e03416cb912ecf8a0b18460230f06403e3c827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 529db93389b7d87f043942fb4c88fa3f1008ada794d91c7142faaceec4864616424b371f7fa04bd4aaa915734b6764456c1c8d105198fc02dbea3acd2e98e0c7
|
7
|
+
data.tar.gz: 6cc8addb8a460597b8269b312a23fca444b9daaa5f5d25581979ea3fad1dfbbd282146b1c714d573e28cf81b84fe43c4710d608d56f37d37dfe2d417bee943db
|
data/lib/dependabot/errors.rb
CHANGED
@@ -98,7 +98,7 @@ module Dependabot
|
|
98
98
|
attr_reader :source
|
99
99
|
|
100
100
|
def initialize(source)
|
101
|
-
@source = source
|
101
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
102
102
|
msg = "The following source could not be reached as it requires "\
|
103
103
|
"authentication (and any provided details were invalid or lacked "\
|
104
104
|
"the required permissions): #{source}"
|
@@ -110,7 +110,7 @@ module Dependabot
|
|
110
110
|
attr_reader :source
|
111
111
|
|
112
112
|
def initialize(source)
|
113
|
-
@source = source
|
113
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
114
114
|
super("The following source timed out: #{source}")
|
115
115
|
end
|
116
116
|
end
|
@@ -119,7 +119,7 @@ module Dependabot
|
|
119
119
|
attr_reader :source
|
120
120
|
|
121
121
|
def initialize(source)
|
122
|
-
@source = source
|
122
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
123
123
|
super("Could not verify the SSL certificate for #{source}")
|
124
124
|
end
|
125
125
|
end
|
@@ -18,7 +18,7 @@ module Dependabot
|
|
18
18
|
require_relative "commits_finder"
|
19
19
|
|
20
20
|
# Earlier entries are preferred
|
21
|
-
CHANGELOG_NAMES = %w(changelog
|
21
|
+
CHANGELOG_NAMES = %w(changelog news changes history release).freeze
|
22
22
|
|
23
23
|
attr_reader :source, :dependency, :credentials, :suggested_changelog_url
|
24
24
|
|
@@ -61,7 +61,9 @@ module Dependabot
|
|
61
61
|
raise(RepoNotFound, source.url) unless repo_exists?
|
62
62
|
|
63
63
|
retrying ||= false
|
64
|
-
|
64
|
+
|
65
|
+
msg = "Unexpected git error!\n\n#{e.cause&.class}: #{e.cause&.message}"
|
66
|
+
raise msg if retrying
|
65
67
|
|
66
68
|
retrying = true
|
67
69
|
retry
|
@@ -258,6 +260,9 @@ module Dependabot
|
|
258
260
|
team_reviewers: reviewers_hash[:team_reviewers] || []
|
259
261
|
)
|
260
262
|
rescue Octokit::UnprocessableEntity => e
|
263
|
+
# Special case GitHub bug for team reviewers
|
264
|
+
return if e.message.include?("Could not resolve to a node")
|
265
|
+
|
261
266
|
if invalid_reviewer?(e.message)
|
262
267
|
comment_with_invalid_reviewer(pull_request, e.message)
|
263
268
|
return
|
@@ -168,23 +168,28 @@ module Dependabot
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def commit_message
|
171
|
-
|
171
|
+
# Take the commit message from the old commit
|
172
|
+
commit_being_updated.message
|
173
|
+
end
|
174
|
+
|
175
|
+
def commit_being_updated
|
176
|
+
@commit_being_updated ||=
|
172
177
|
if pull_request.commits == 1
|
173
178
|
github_client_for_source.
|
174
|
-
git_commit(source.repo, pull_request.head.sha)
|
175
|
-
message
|
179
|
+
git_commit(source.repo, pull_request.head.sha)
|
176
180
|
else
|
177
181
|
author_name = author_details&.fetch(:name, nil) || "dependabot"
|
178
182
|
commits =
|
179
183
|
github_client_for_source.
|
180
|
-
pull_request_commits(source.repo, pull_request_number)
|
184
|
+
pull_request_commits(source.repo, pull_request_number).
|
185
|
+
reverse
|
181
186
|
|
182
187
|
commit =
|
183
188
|
commits.find { |c| c.sha == old_commit } ||
|
184
189
|
commits.find { |c| c.commit.author.name.include?(author_name) } ||
|
185
190
|
commits.first
|
186
191
|
|
187
|
-
commit.commit
|
192
|
+
commit.commit
|
188
193
|
end
|
189
194
|
end
|
190
195
|
|
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.112.
|
4
|
+
version: 0.112.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ecr
|