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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d0ae24db4c554de4c5a50dc13214529e2f572d49d87eeaae075b63ca21944ab
4
- data.tar.gz: 0d5e3840f1807a6183122d4240768a3c02e6444eaf8327f998cc0affcca27e37
3
+ metadata.gz: 78a0ef5629fded48927793df03c46c21d8267c7ae0c11d7d82b205e4631bab57
4
+ data.tar.gz: 0ab2b1947a8359b54a383cb585e3dee16c5d9df3782d41f8e3869706eb8908d4
5
5
  SHA512:
6
- metadata.gz: 40ddaa65bdf946b6339041f683a41f6b958fe117e64e3eabc3df28b44a5f021ea8b54b394d432621cc4099d02c75062087a62687788cd8e68dddedeed4672f59
7
- data.tar.gz: 35fb5d7108879caf840a42cca4ca87c243cf8c4ef5ce318aca4e5d4aa1c4f662f5cc280be3c33549c404d877c5ddc7e1008d611f53f5cfaebcc869ecf0954b5b
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) 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
@@ -95,6 +95,7 @@ module Dependabot
95
95
  time_taken = Time.now - start
96
96
 
97
97
  if ENV["DEBUG_HELPERS"] == "true"
98
+ puts env_cmd
98
99
  puts stdout
99
100
  puts stderr
100
101
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.178.1"
4
+ VERSION = "0.180.1"
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.178.1
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-14 00:00:00.000000000 Z
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.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
  - - ">="