peoplegroup-connectors 0.4.5 → 0.4.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcabbbbfd790a8c46fd6eda5b30e7a42962e6420e05db68413cd94a9f96537a1
|
4
|
+
data.tar.gz: 1049c26cf69b3b1e40c3ef3b2aabcfa83b4b6b9a10c3bb825f85abab37a47b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd37579dadad639d505686d349b8bf149159602aa07175758bd3c42554cfea3eaec4648569b720c7e5abf62c96ae0b75c4a77af091c4af540d1170b9ec266494
|
7
|
+
data.tar.gz: eda96caee25e0fa72511d939683fd87943c3439187aa55c9aa103614ddd0d811b2cd50c6888de95b2259109282803eae2c4467ed67ad417cb4ac99bc9d20099e
|
@@ -125,6 +125,44 @@ module PeopleGroup
|
|
125
125
|
create_merge_request(project_id, commit_message, options)
|
126
126
|
end
|
127
127
|
|
128
|
+
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')
|
129
|
+
actions = []
|
130
|
+
|
131
|
+
files_to_delete.each do |file|
|
132
|
+
actions << { action: 'delete', file_path: file }
|
133
|
+
end
|
134
|
+
|
135
|
+
files_to_add.each do |file|
|
136
|
+
actions << {
|
137
|
+
action: 'create',
|
138
|
+
file_path: file[:remote_path],
|
139
|
+
content: File.read(file[:local_path])
|
140
|
+
}
|
141
|
+
end
|
142
|
+
|
143
|
+
files_to_update.each do |file|
|
144
|
+
actions << {
|
145
|
+
action: 'update',
|
146
|
+
file_path: file[:remote_path],
|
147
|
+
content: File.read(file[:local_path])
|
148
|
+
}
|
149
|
+
end
|
150
|
+
|
151
|
+
return unless actions.any?
|
152
|
+
|
153
|
+
create_branch(project_id, branch_name, target_branch)
|
154
|
+
create_commit(project_id, branch_name, commit_message, actions)
|
155
|
+
|
156
|
+
options = {
|
157
|
+
source_branch: branch_name,
|
158
|
+
target_branch: target_branch,
|
159
|
+
description: description,
|
160
|
+
remove_source_branch: true
|
161
|
+
}
|
162
|
+
|
163
|
+
create_merge_request(project_id, commit_message, options)
|
164
|
+
end
|
165
|
+
|
128
166
|
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)
|
129
167
|
actions = []
|
130
168
|
|
@@ -67,7 +67,8 @@ module PeopleGroup
|
|
67
67
|
'jobTitle' => change_group.first['jobTitle'],
|
68
68
|
'department' => change_group.first['department'],
|
69
69
|
'division' => change_group.first['division'],
|
70
|
-
'previousManagerId' => change_group[1]['supervisorId']
|
70
|
+
'previousManagerId' => change_group[1]['supervisorId'],
|
71
|
+
'previousJobTitle' => change_group[1]['jobTitle']
|
71
72
|
}
|
72
73
|
|
73
74
|
ObjectifiedHash.new(reformatted)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peoplegroup-connectors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|