peoplegroup-connectors 0.1.61 → 0.1.62

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: 2e59dce9e0a49509f7d7d224419117938e46a4ac2f734a50338c585c5e767a1e
4
- data.tar.gz: f4d2795919f9a057fe39c2ad2fd1791e6af24c35eedd2ee36d1320a35ea44ddd
3
+ metadata.gz: 63e558e3b0b23937bc35569600026b755d8df4b16d30b4d4d7598bba6284b1e3
4
+ data.tar.gz: fce5ddb020adc11c9a323b6c47fe9c6ae57e1e9a3c546b8c2ecb74c41c8fcbe6
5
5
  SHA512:
6
- metadata.gz: 44d2a74d27ce7435b88ad1ebbe8d6c4006b2010ca6baa08db4a6fa490171c67480336c65a2cc6e81d4fb1c73d7babff21c0d553e3239b0960ee44fe034113ac1
7
- data.tar.gz: bc28647937a2043f81224906bb62483d6b1735bf02d810cc13175e262af997bf5d0934cb26d0f21e618565678f35e7776bea8de31091c57393f74d3984912934
6
+ metadata.gz: 359d52f20f5eb1166a79b8e2a39c431811ee0ca3dc84d49defde2c81dcff11a2fcc02d4adf5e8be4a64e58c61ed2d62df4bf9d5af070446fb7bfd3e4d7ba68ce
7
+ data.tar.gz: 5944fa5d2962193be9cd49f6f29ad04fcb2077e9cf11a28cc51e2f1dc5be51b5dcb7b9632019b57949b3e147aaeae1cc85d405dc75c276648f0efd243bce42a2
@@ -72,8 +72,8 @@ module PeopleGroup
72
72
  epic || retry_on_error { @client.create_epic(group_id, title, options) }
73
73
  end
74
74
 
75
- def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil)
76
- retry_on_error { @client.create_branch(project_id, branch_name, 'master') }
75
+ def commit_new_files_to_new_merge_request(project_id, branch_name, new_files, commit_message, description = nil, target_branch: 'master')
76
+ retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
77
77
  actions = []
78
78
  new_files.each do |file|
79
79
  actions << {
@@ -85,7 +85,7 @@ module PeopleGroup
85
85
 
86
86
  retry_on_error { @client.create_commit(project_id, branch_name, commit_message, actions) }
87
87
 
88
- options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
88
+ options = { source_branch: branch_name, target_branch: target_branch, remove_source_branch: true }
89
89
  options[:description] = description if description
90
90
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
91
91
  end
@@ -120,8 +120,8 @@ module PeopleGroup
120
120
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
121
121
  end
122
122
 
123
- def commit_change_to_new_merge_request(project_id, branch_name, file_path, file_with_change, commit_message, description = nil)
124
- retry_on_error { @client.create_branch(project_id, branch_name, 'master') }
123
+ def commit_change_to_new_merge_request(project_id, branch_name, file_path, file_with_change, commit_message, description = nil, target_branch: 'master')
124
+ retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
125
125
  actions = [
126
126
  {
127
127
  action: 'update',
@@ -131,7 +131,7 @@ module PeopleGroup
131
131
  ]
132
132
  retry_on_error { @client.create_commit(project_id, branch_name, commit_message, actions) }
133
133
 
134
- options = { source_branch: branch_name, target_branch: 'master', remove_source_branch: true }
134
+ options = { source_branch: branch_name, target_branch: target_branch, remove_source_branch: true }
135
135
  options[:description] = description if description
136
136
  retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
137
137
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '0.1.61'
5
+ VERSION = '0.1.62'
6
6
  end
7
7
  end
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.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - lien van den steen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-01 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab
@@ -190,7 +190,7 @@ metadata:
190
190
  homepage_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
191
191
  source_code_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
192
192
  changelog_uri: https://gitlab.com/gitlab-com/people-group/peopleops-eng/connectors-gem
193
- post_install_message:
193
+ post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths:
196
196
  - lib
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.2.3
209
- signing_key:
208
+ rubygems_version: 3.1.4
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: Library for our shared connectors.
212
212
  test_files: []