peoplegroup-connectors 2.1.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 317c7bd1b937bc6bb6ce5acd40115840a5092560cbaac8cb624badc86a572e0f
4
- data.tar.gz: 7f6d127e532fb4bdb6ea50d2f71d175c8f7728207bc3e232787a3414c4a00b62
3
+ metadata.gz: 6d5d2e96f7a3e4eaf412bf2d54558eda7be3d2db63eedb3f9727f87d681fde41
4
+ data.tar.gz: 74b4f4d79bcd04d9ea9ecb7af19e63cd7deced767490005625ec4e030dea139c
5
5
  SHA512:
6
- metadata.gz: b15278e6752cf3413ec05102076fce21ef079999f6118ada9e686d33e294cc6f17046fc90757fb5d84ef002493c7a715563b72c181b3f8dfc329932dc0a49112
7
- data.tar.gz: a40bd8dc9e15687b05da1d5278e1884eb8baf315c7b7cd124f7333a72cc2592622fc25d5681edfc9182189a12cf71c1a51ba852d95e908ceab1fe25208a3807d
6
+ metadata.gz: 88382373392d846c96781c9360216eedf27e352a14b8624eb338260e6015f0ca1ec2ef105ded08c5fc115d8f5f0cbd5fe84d5cb16f699dc3dd907cdd89d185b7
7
+ data.tar.gz: 80fe6d5d282e97b5f6108d7056f91820ec4e9d6d8b6746cb13c19e2ca269438bf71134618f80721a60c03f166f98664dbaaa66c36980a9a11f0199b054c32dd5
@@ -169,7 +169,7 @@ module PeopleGroup
169
169
  epic || create_epic(group_id, title, options)
170
170
  end
171
171
 
172
- def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil, target_branch: 'master', assign_group: nil)
172
+ def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil, target_branch: 'master', assign_group: nil, labels: nil)
173
173
  create_branch(project_id, branch_name, target_branch)
174
174
 
175
175
  actions = []
@@ -191,11 +191,15 @@ module PeopleGroup
191
191
 
192
192
  options[:description] = description if description
193
193
  options[:assignee_ids] = group_member_ids(assign_group) if assign_group
194
+ options[:labels] = labels if labels
194
195
 
195
196
  create_merge_request(project_id, commit_message, options)
196
197
  end
197
198
 
198
- def commit_change_to_new_merge_request_v3(project_id, branch_name, commit_message, description, files_to_delete: [], files_to_update: [], files_to_add: [], target_branch: 'master')
199
+ # rubocop:disable Metrics/ParameterLists
200
+ def commit_change_to_new_merge_request_v3(
201
+ project_id, branch_name, commit_message, description, files_to_delete: [], files_to_update: [], files_to_add: [], target_branch: 'master',
202
+ assign_group: nil, labels: nil)
199
203
  actions = []
200
204
 
201
205
  files_to_delete.each do |file|
@@ -230,8 +234,12 @@ module PeopleGroup
230
234
  remove_source_branch: true
231
235
  }
232
236
 
237
+ options[:assignee_ids] = group_member_ids(assign_group) if assign_group
238
+ options[:labels] = labels if labels
239
+
233
240
  create_merge_request(project_id, commit_message, options)
234
241
  end
242
+ # rubocop:enable Metrics/ParameterLists
235
243
 
236
244
  def commit_change_to_new_merge_request_v2(project_id, branch_name, commit_message, description = nil, files_to_delete = [], files_to_update = [], target_branch: 'master', assign_group: nil)
237
245
  actions = []
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '2.1.2'
5
+ VERSION = '2.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peoplegroup-connectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen