dependabot-common 0.179.0 → 0.180.2

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: 51b44cce34cfdcd608219f12ce2fc6632151238c97774681e7397dd2e3c2cc94
4
- data.tar.gz: 7155e333db757d42491844c72d606830187ef7dc6a6faa57eb3f72e62659514d
3
+ metadata.gz: ac9e012745f0fea5e47eda90f3c6ed888b6aaea281d8467d5e7db0c70c822510
4
+ data.tar.gz: aea88499b949b0b6f4b4b7fa3dc071566589497d9a70f25b61c32aceef59a9e8
5
5
  SHA512:
6
- metadata.gz: 89682ce051768d2c55f2d139519d921b947f646e1749e7ed12096195850621d2d5e44c5917afd0cd9b42ab963558c4d9221c984d3e1e7645efc926e7deab2e96
7
- data.tar.gz: 1e708badf9dd627f6fe97da7e808181d01e7d25e18899c8db7b4d78637597990c7391f36ac6f39a173f8ab49e7a2b6f53dea608018bd0ace79d68e27821be630
6
+ metadata.gz: 2989802bd0a6e6aafafb367c6280be61ef838287dc6f4bf43ee3c8c08901705ae1c39d533368ee39deaca9a90f21826ea11c50ccea448d7374d59be4a0d48f69
7
+ data.tar.gz: 6e8d0658b12140c6f57c1a7b0629382f9ae5fd558d33684c1a63f0408ba1735ce5edc807b894857923d3a3a66f308bef735d6d67a502ad62bf68d30d9b0a9b91
@@ -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) if approvers&.any?
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.edit_merge_request_approvers(
160
+ gitlab_client_for_source.create_merge_request_level_rule(
161
161
  target_project_id || source.repo,
162
162
  merge_request.iid,
163
- approver_ids: approvers_hash[:approvers],
164
- approver_group_ids: approvers_hash[:group_approvers]
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.179.0"
4
+ VERSION = "0.180.2"
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.179.0
4
+ version: 0.180.2
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-16 00:00:00.000000000 Z
11
+ date: 2022-03-28 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.7.0
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.7.0
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.17.0
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.17.0
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.23.0
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.23.0
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.0.0
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.0.0
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.5.0
465
+ version: 2.7.0
466
466
  required_rubygems_version: !ruby/object:Gem::Requirement
467
467
  requirements:
468
468
  - - ">="