dependabot-common 0.205.1 → 0.208.0
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 +18 -0
- data/lib/dependabot/file_fetchers/base.rb +5 -2
- data/lib/dependabot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 912d048222662ce1e434cebc8cfe40f108937215a3d4b2d2ce60613aaaeda092
|
4
|
+
data.tar.gz: a1b87d317cd78ce56d0140c8ea7adb3740ee212e7417b1dc12a1ad78512034f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1900e1ceba510ad0f73ed1c0a53265261f730c07af87f6731347a13e3d0ada91066fe138ce370a3ec997687188d56c880ad921d2839e1106dc146a02fd1dd03
|
7
|
+
data.tar.gz: 42ef74f670779d88927c3426b6598b06fd77f057e41fe29a78b2976ed3007b6d085113ca3f7d23da0efd9989374cc50b0ef101a64e403b5338463e868f1dc594
|
@@ -120,6 +120,8 @@ module Dependabot
|
|
120
120
|
# rubocop:disable Metrics/ParameterLists
|
121
121
|
def create_pull_request(repo, pr_name, source_branch, target_branch,
|
122
122
|
pr_description, _labels, _work_item = nil)
|
123
|
+
reviewers = default_reviewers(repo)
|
124
|
+
|
123
125
|
content = {
|
124
126
|
title: pr_name,
|
125
127
|
source: {
|
@@ -133,6 +135,7 @@ module Dependabot
|
|
133
135
|
}
|
134
136
|
},
|
135
137
|
description: pr_description,
|
138
|
+
reviewers: reviewers,
|
136
139
|
close_source_branch: true
|
137
140
|
}
|
138
141
|
|
@@ -141,6 +144,21 @@ module Dependabot
|
|
141
144
|
end
|
142
145
|
# rubocop:enable Metrics/ParameterLists
|
143
146
|
|
147
|
+
def default_reviewers(repo)
|
148
|
+
path = "#{repo}/default-reviewers?pagelen=100&fields=values.uuid,next"
|
149
|
+
reviewers_url = base_url + path
|
150
|
+
|
151
|
+
default_reviewers = paginate({ "next" => reviewers_url })
|
152
|
+
|
153
|
+
reviewer_data = []
|
154
|
+
|
155
|
+
default_reviewers.each do |reviewer|
|
156
|
+
reviewer_data.append({ uuid: reviewer.fetch("uuid") })
|
157
|
+
end
|
158
|
+
|
159
|
+
reviewer_data
|
160
|
+
end
|
161
|
+
|
144
162
|
def tags(repo)
|
145
163
|
path = "#{repo}/refs/tags?pagelen=100"
|
146
164
|
response = get(base_url + path)
|
@@ -15,7 +15,7 @@ require "dependabot/shared_helpers"
|
|
15
15
|
module Dependabot
|
16
16
|
module FileFetchers
|
17
17
|
class Base
|
18
|
-
attr_reader :source, :credentials, :repo_contents_path
|
18
|
+
attr_reader :source, :credentials, :repo_contents_path, :options
|
19
19
|
|
20
20
|
CLIENT_NOT_FOUND_ERRORS = [
|
21
21
|
Octokit::NotFound,
|
@@ -42,11 +42,14 @@ module Dependabot
|
|
42
42
|
# If provided, file _data_ will be loaded from the clone.
|
43
43
|
# Submodules and directory listings are _not_ currently supported
|
44
44
|
# by repo_contents_path and still use an API trip.
|
45
|
-
|
45
|
+
#
|
46
|
+
# options supports custom feature enablement
|
47
|
+
def initialize(source:, credentials:, repo_contents_path: nil, options: {})
|
46
48
|
@source = source
|
47
49
|
@credentials = credentials
|
48
50
|
@repo_contents_path = repo_contents_path
|
49
51
|
@linked_paths = {}
|
52
|
+
@options = options
|
50
53
|
end
|
51
54
|
|
52
55
|
def repo
|
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.
|
4
|
+
version: 0.208.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -332,14 +332,14 @@ dependencies:
|
|
332
332
|
requirements:
|
333
333
|
- - "~>"
|
334
334
|
- !ruby/object:Gem::Version
|
335
|
-
version: 1.
|
335
|
+
version: 1.33.0
|
336
336
|
type: :development
|
337
337
|
prerelease: false
|
338
338
|
version_requirements: !ruby/object:Gem::Requirement
|
339
339
|
requirements:
|
340
340
|
- - "~>"
|
341
341
|
- !ruby/object:Gem::Version
|
342
|
-
version: 1.
|
342
|
+
version: 1.33.0
|
343
343
|
- !ruby/object:Gem::Dependency
|
344
344
|
name: ruby-debug-ide
|
345
345
|
requirement: !ruby/object:Gem::Requirement
|