dependabot-common 0.112.29 → 0.112.34

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: e272a3d8d5c27d8bd7eeb4a5f7488bc3db9ca4515b9f9bf3a946810cd61bd00b
4
- data.tar.gz: 193c4e104b9ceb7740afa1536a8ec62d48c910409f484b382b949a127fbe8c9b
3
+ metadata.gz: 52615bdb552935a1f3311dfa6d6856d948a8cf5683abe6dbe12be23fcff2654a
4
+ data.tar.gz: 7752d42bd28f08f0d06265e3f0b4cf893d83249d01b3797b9d78685bfdb4deb4
5
5
  SHA512:
6
- metadata.gz: 5a3de01fb30f92e94da8875eb18c6b4d8512ad3b1ab74bf24da419f84532f6fd68f5bb2884ecae843aba528b1e1a1f751785ed3a14aa6853497d539930a0c9aa
7
- data.tar.gz: e561d85cefbac09f8bd11141f4944025198f27bf14e0b0c4250002e0fa75b9bd34689e7b06979027b749251927ab30e7acb4ae777cca82d0cff450a8b4bb8874
6
+ metadata.gz: 9da243d7c5ff821d78f0ecd8e87e4dec0025e03bc039f5b43000ad6c4c2a422f5e6732a3ebea46d52fbeb5a2af93ce36dab8f3fecc14bbdf029c58ddc3142579
7
+ data.tar.gz: 9c9b48f6f7f203a0a20cbf564da9450828fcb38c9f6f05ffaf6ebe517e209653cf502dfe8e1d84a777e62f0497f15cab3de05d06da58ba9ef0c2185835dab9bd
@@ -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 history news changes release).freeze
21
+ CHANGELOG_NAMES = %w(changelog news changes history release).freeze
22
22
 
23
23
  attr_reader :source, :dependency, :credentials, :suggested_changelog_url
24
24
 
@@ -258,6 +258,9 @@ module Dependabot
258
258
  team_reviewers: reviewers_hash[:team_reviewers] || []
259
259
  )
260
260
  rescue Octokit::UnprocessableEntity => e
261
+ # Special case GitHub bug for team reviewers
262
+ return if e.message.include?("Could not resolve to a node")
263
+
261
264
  if invalid_reviewer?(e.message)
262
265
  comment_with_invalid_reviewer(pull_request, e.message)
263
266
  return
@@ -168,23 +168,28 @@ module Dependabot
168
168
  end
169
169
 
170
170
  def commit_message
171
- @commit_message ||=
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.message
192
+ commit.commit
188
193
  end
189
194
  end
190
195
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.112.29"
4
+ VERSION = "0.112.34"
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.112.29
4
+ version: 0.112.34
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-02 00:00:00.000000000 Z
11
+ date: 2019-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr