dependabot-common 0.178.1 → 0.180.1
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/gitlab.rb +13 -7
- data/lib/dependabot/shared_helpers.rb +1 -0
- data/lib/dependabot/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a0ef5629fded48927793df03c46c21d8267c7ae0c11d7d82b205e4631bab57
|
4
|
+
data.tar.gz: 0ab2b1947a8359b54a383cb585e3dee16c5d9df3782d41f8e3869706eb8908d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39c4b42f4457511f735454feeca2692f8509daab3d8a4d649c09673a210d8de59c05dec5c3b0cb841fb54c51281c5416800757069345e9f277180e32694c117
|
7
|
+
data.tar.gz: fee93691d7efdfcea45131c9ad1a191d567e68bcf47b5e213a875ca73a296eb4174d44bd9c02fe8f6edb1f498b89c35763b33cfee2f34abdf2a3cb32f5555dac
|
@@ -145,26 +145,32 @@ module Dependabot
|
|
145
145
|
assignee_ids: assignees,
|
146
146
|
labels: labeler.labels_for_pr.join(","),
|
147
147
|
milestone_id: milestone,
|
148
|
-
target_project_id: target_project_id
|
148
|
+
target_project_id: target_project_id,
|
149
|
+
reviewer_ids: approvers_hash[:reviewers]
|
149
150
|
)
|
150
151
|
end
|
151
152
|
|
152
153
|
def annotate_merge_request(merge_request)
|
153
|
-
add_approvers_to_merge_request(merge_request)
|
154
|
+
add_approvers_to_merge_request(merge_request)
|
154
155
|
end
|
155
156
|
|
156
157
|
def add_approvers_to_merge_request(merge_request)
|
157
|
-
approvers_hash
|
158
|
-
approvers.keys.map { |k| [k.to_sym, approvers[k]] }.to_h
|
158
|
+
return unless approvers_hash[:approvers] || approvers_hash[:group_approvers]
|
159
159
|
|
160
|
-
gitlab_client_for_source.
|
160
|
+
gitlab_client_for_source.create_merge_request_level_rule(
|
161
161
|
target_project_id || source.repo,
|
162
162
|
merge_request.iid,
|
163
|
-
|
164
|
-
|
163
|
+
name: "dependency-updates",
|
164
|
+
approvals_required: 1,
|
165
|
+
user_ids: approvers_hash[:approvers],
|
166
|
+
group_ids: approvers_hash[:group_approvers]
|
165
167
|
)
|
166
168
|
end
|
167
169
|
|
170
|
+
def approvers_hash
|
171
|
+
@approvers_hash ||= approvers&.transform_keys(&:to_sym) || {}
|
172
|
+
end
|
173
|
+
|
168
174
|
def default_branch
|
169
175
|
@default_branch ||=
|
170
176
|
gitlab_client_for_source.project(source.repo).default_branch
|
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.180.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -132,28 +132,28 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - '='
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 1.
|
135
|
+
version: 1.10.0
|
136
136
|
type: :runtime
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
140
|
- - '='
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: 1.
|
142
|
+
version: 1.10.0
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: gitlab
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - '='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: 4.
|
149
|
+
version: 4.18.0
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - '='
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 4.
|
156
|
+
version: 4.18.0
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: nokogiri
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,14 +298,14 @@ dependencies:
|
|
298
298
|
requirements:
|
299
299
|
- - "~>"
|
300
300
|
- !ruby/object:Gem::Version
|
301
|
-
version: 1.
|
301
|
+
version: 1.26.0
|
302
302
|
type: :development
|
303
303
|
prerelease: false
|
304
304
|
version_requirements: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
306
|
- - "~>"
|
307
307
|
- !ruby/object:Gem::Version
|
308
|
-
version: 1.
|
308
|
+
version: 1.26.0
|
309
309
|
- !ruby/object:Gem::Dependency
|
310
310
|
name: simplecov
|
311
311
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,14 +354,14 @@ dependencies:
|
|
354
354
|
requirements:
|
355
355
|
- - '='
|
356
356
|
- !ruby/object:Gem::Version
|
357
|
-
version: 6.
|
357
|
+
version: 6.1.0
|
358
358
|
type: :development
|
359
359
|
prerelease: false
|
360
360
|
version_requirements: !ruby/object:Gem::Requirement
|
361
361
|
requirements:
|
362
362
|
- - '='
|
363
363
|
- !ruby/object:Gem::Version
|
364
|
-
version: 6.
|
364
|
+
version: 6.1.0
|
365
365
|
- !ruby/object:Gem::Dependency
|
366
366
|
name: webmock
|
367
367
|
requirement: !ruby/object:Gem::Requirement
|
@@ -462,7 +462,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
462
462
|
requirements:
|
463
463
|
- - ">="
|
464
464
|
- !ruby/object:Gem::Version
|
465
|
-
version: 2.
|
465
|
+
version: 2.7.0
|
466
466
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
467
467
|
requirements:
|
468
468
|
- - ">="
|