peoplegroup-connectors 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peoplegroup/connectors/gitlab.rb +20 -2
- data/lib/peoplegroup/connectors/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2193145f0bfa0c5e69c282db2c6d3c6d61c98c5ddf97f6a5adf50e9d3041c932
|
4
|
+
data.tar.gz: 06c04625b87ce7653df20a404a7bd8dd0c696516f6aa24523542985ad06373b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237ba92529a93da4c53b20ec134545f7873b8d677c7a33d36ab009b9e21b49316de6e51a27cac18f408619db59d4b006037cbeced4ec8aad229c1b4ba5f695f4
|
7
|
+
data.tar.gz: fc4b1ef1b8dd1271ea1c61fd164f673a444fe8dc27966925d9f320cc09e06b521316bdaba26d8d5dc557b02555ea46f1535fef985350f82ff474ec1b85cdc76b
|
@@ -45,7 +45,25 @@ module PeopleGroup
|
|
45
45
|
epic || @client.create_epic(group_id, title, options)
|
46
46
|
end
|
47
47
|
|
48
|
-
def
|
48
|
+
def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil)
|
49
|
+
@client.create_branch(project_id, branch_name, 'master')
|
50
|
+
actions = []
|
51
|
+
new_files.each do |file|
|
52
|
+
actions << {
|
53
|
+
action: 'create',
|
54
|
+
file_path: file.sub('tmp', '/data/team_members'),
|
55
|
+
content: File.read(file)
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
@client.create_commit(project_id, branch_name, commit_message, actions)
|
60
|
+
|
61
|
+
options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
|
62
|
+
options[:description] = description if description
|
63
|
+
@client.create_merge_request(project_id, commit_message, options)
|
64
|
+
end
|
65
|
+
|
66
|
+
def commit_change_to_new_merge_request_v2(project_id, branch_name, commit_message, description = nil, files_to_delete = [], files_to_update = [])
|
49
67
|
actions = []
|
50
68
|
|
51
69
|
files_to_delete.each do |file|
|
@@ -71,7 +89,7 @@ module PeopleGroup
|
|
71
89
|
@client.create_commit(project_id, branch_name, commit_message, actions)
|
72
90
|
|
73
91
|
options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
|
74
|
-
options[:description] = description if description
|
92
|
+
options[:description] = description if description
|
75
93
|
@client.create_merge_request(project_id, commit_message, options)
|
76
94
|
end
|
77
95
|
|
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.1.
|
4
|
+
version: 0.1.11
|
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: 2021-02-
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|