dependabot-common 0.125.6 → 0.125.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/clients/bitbucket.rb +2 -0
- data/lib/dependabot/errors.rb +1 -0
- data/lib/dependabot/metadata_finders/base/commits_finder.rb +1 -1
- data/lib/dependabot/pull_request_creator.rb +3 -0
- data/lib/dependabot/pull_request_creator/codecommit.rb +13 -13
- data/lib/dependabot/shared_helpers.rb +1 -1
- data/lib/dependabot/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00501e58f7997439e9a8719953cba067fa98409b74a28f8165a75d6322846342
|
4
|
+
data.tar.gz: ee4f20277b3acc06b48ce6cd2ef8bb1c2073098797375daaffceda7df82f7a01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6fefdd33b1409d9bb2a1825456d94f0e0a43e3c618e0c97ea09db99f1b70026da494469e7b4fb50f02b957acc4c65d777538228b9a7a9b6f3d173d5a5c6dea5
|
7
|
+
data.tar.gz: f7e73da6ddfc012503494fac0d52670feb619a5d70cca3fba65aa52611069f886c56a3ad8d6777b5eec408951bdd50a401b3c09bd7bb45f16f472b01c8cf17a1
|
data/lib/dependabot/errors.rb
CHANGED
@@ -226,7 +226,7 @@ module Dependabot
|
|
226
226
|
previous_commit_shas =
|
227
227
|
github_client.commits(repo, **args).map(&:sha)
|
228
228
|
|
229
|
-
#
|
229
|
+
# NOTE: We reverse this so it's consistent with the array we get
|
230
230
|
# from `github_client.compare(...)`
|
231
231
|
args = { sha: new_tag, path: path }.compact
|
232
232
|
github_client.
|
@@ -13,8 +13,11 @@ module Dependabot
|
|
13
13
|
require "dependabot/pull_request_creator/labeler"
|
14
14
|
|
15
15
|
class RepoNotFound < StandardError; end
|
16
|
+
|
16
17
|
class RepoArchived < StandardError; end
|
18
|
+
|
17
19
|
class RepoDisabled < StandardError; end
|
20
|
+
|
18
21
|
class NoHistoryInCommon < StandardError; end
|
19
22
|
|
20
23
|
# AnnotationError is raised if a PR was created, but failed annotation
|
@@ -109,19 +109,19 @@ module Dependabot
|
|
109
109
|
def pull_requests_for_branch
|
110
110
|
@pull_requests_for_branch ||=
|
111
111
|
begin
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
112
|
+
open_prs = codecommit_client_for_source.pull_requests(
|
113
|
+
source.repo,
|
114
|
+
"open",
|
115
|
+
source.branch || default_branch
|
116
|
+
)
|
117
|
+
closed_prs = codecommit_client_for_source.pull_requests(
|
118
|
+
source.repo,
|
119
|
+
"closed",
|
120
|
+
source.branch || default_branch
|
121
|
+
)
|
122
|
+
|
123
|
+
[*open_prs, *closed_prs]
|
124
|
+
end
|
125
125
|
end
|
126
126
|
|
127
127
|
def create_commit
|
@@ -181,7 +181,7 @@ module Dependabot
|
|
181
181
|
end
|
182
182
|
|
183
183
|
def self.configure_git_to_use_https
|
184
|
-
#
|
184
|
+
# NOTE: we use --global here (rather than --system) so that Dependabot
|
185
185
|
# can be run without privileged access
|
186
186
|
run_shell_command(
|
187
187
|
"git config --global --replace-all url.https://github.com/."\
|
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.125.
|
4
|
+
version: 0.125.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|
@@ -118,14 +118,14 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - '='
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: 4.
|
121
|
+
version: 4.17.0
|
122
122
|
type: :runtime
|
123
123
|
prerelease: false
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
126
|
- - '='
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version: 4.
|
128
|
+
version: 4.17.0
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: nokogiri
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -292,28 +292,28 @@ dependencies:
|
|
292
292
|
requirements:
|
293
293
|
- - "~>"
|
294
294
|
- !ruby/object:Gem::Version
|
295
|
-
version:
|
295
|
+
version: 1.4.2
|
296
296
|
type: :development
|
297
297
|
prerelease: false
|
298
298
|
version_requirements: !ruby/object:Gem::Requirement
|
299
299
|
requirements:
|
300
300
|
- - "~>"
|
301
301
|
- !ruby/object:Gem::Version
|
302
|
-
version:
|
302
|
+
version: 1.4.2
|
303
303
|
- !ruby/object:Gem::Dependency
|
304
304
|
name: simplecov
|
305
305
|
requirement: !ruby/object:Gem::Requirement
|
306
306
|
requirements:
|
307
307
|
- - "~>"
|
308
308
|
- !ruby/object:Gem::Version
|
309
|
-
version: 0.
|
309
|
+
version: 0.20.0
|
310
310
|
type: :development
|
311
311
|
prerelease: false
|
312
312
|
version_requirements: !ruby/object:Gem::Requirement
|
313
313
|
requirements:
|
314
314
|
- - "~>"
|
315
315
|
- !ruby/object:Gem::Version
|
316
|
-
version: 0.
|
316
|
+
version: 0.20.0
|
317
317
|
- !ruby/object:Gem::Dependency
|
318
318
|
name: simplecov-console
|
319
319
|
requirement: !ruby/object:Gem::Requirement
|