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 +4 -4
- data/lib/peoplegroup/connectors/gitlab.rb +10 -2
- data/lib/peoplegroup/connectors/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d5d2e96f7a3e4eaf412bf2d54558eda7be3d2db63eedb3f9727f87d681fde41
|
|
4
|
+
data.tar.gz: 74b4f4d79bcd04d9ea9ecb7af19e63cd7deced767490005625ec4e030dea139c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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 = []
|