peoplegroup-connectors 0.1.56 → 0.1.61
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: 2e59dce9e0a49509f7d7d224419117938e46a4ac2f734a50338c585c5e767a1e
|
4
|
+
data.tar.gz: f4d2795919f9a057fe39c2ad2fd1791e6af24c35eedd2ee36d1320a35ea44ddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d2a74d27ce7435b88ad1ebbe8d6c4006b2010ca6baa08db4a6fa490171c67480336c65a2cc6e81d4fb1c73d7babff21c0d553e3239b0960ee44fe034113ac1
|
7
|
+
data.tar.gz: bc28647937a2043f81224906bb62483d6b1735bf02d810cc13175e262af997bf5d0934cb26d0f21e618565678f35e7776bea8de31091c57393f74d3984912934
|
@@ -257,7 +257,7 @@ module PeopleGroup
|
|
257
257
|
end
|
258
258
|
|
259
259
|
def time_off_adjustment(employee_id, options)
|
260
|
-
@client.employee.time_off_balance_adjustment(
|
260
|
+
@client.employee.time_off_balance_adjustment(employee_id, options)
|
261
261
|
end
|
262
262
|
|
263
263
|
def accrued_days(employee_id)
|
@@ -90,7 +90,7 @@ module PeopleGroup
|
|
90
90
|
retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
|
91
91
|
end
|
92
92
|
|
93
|
-
def commit_change_to_new_merge_request_v2(project_id, branch_name, commit_message, description = nil, files_to_delete = [], files_to_update = [])
|
93
|
+
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')
|
94
94
|
actions = []
|
95
95
|
|
96
96
|
files_to_delete.each do |file|
|
@@ -112,10 +112,10 @@ module PeopleGroup
|
|
112
112
|
|
113
113
|
return unless actions.any?
|
114
114
|
|
115
|
-
retry_on_error { @client.create_branch(project_id, branch_name,
|
115
|
+
retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
|
116
116
|
retry_on_error { @client.create_commit(project_id, branch_name, commit_message, actions) }
|
117
117
|
|
118
|
-
options = { source_branch: branch_name, target_branch:
|
118
|
+
options = { source_branch: branch_name, target_branch: target_branch, remove_source_branch: true }
|
119
119
|
options[:description] = description if description
|
120
120
|
retry_on_error { @client.create_merge_request(project_id, commit_message, options) }
|
121
121
|
end
|
@@ -162,8 +162,8 @@ module PeopleGroup
|
|
162
162
|
epics.first
|
163
163
|
end
|
164
164
|
|
165
|
-
def create_branch(project_id, branch_name)
|
166
|
-
retry_on_error { @client.create_branch(project_id, branch_name,
|
165
|
+
def create_branch(project_id, branch_name, target_branch: 'master')
|
166
|
+
retry_on_error { @client.create_branch(project_id, branch_name, target_branch) }
|
167
167
|
end
|
168
168
|
|
169
169
|
def create_merge_request(project_id, title, options = {})
|
@@ -54,8 +54,8 @@ module PeopleGroup
|
|
54
54
|
@client.chat_postMessage(channel: channel, text: text, as_user: true, attachments: attachments, unfurl_links: false, thread_ts: thread_ts, reply_broadcast: reply_broadcast, blocks: formatted_message)
|
55
55
|
end
|
56
56
|
|
57
|
-
def update_message(channel:, timestamp:, text
|
58
|
-
@client.chat_update(channel: channel, text: text, ts: timestamp, as_user: true, attachments: attachments)
|
57
|
+
def update_message(channel:, timestamp:, text: '', attachments: [], formatted_message: [])
|
58
|
+
@client.chat_update(channel: channel, text: text, ts: timestamp, as_user: true, attachments: attachments, blocks: formatted_message)
|
59
59
|
end
|
60
60
|
|
61
61
|
def send_modal_message(trigger:, view:)
|
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.61
|
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-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.2.
|
75
|
+
version: 0.2.12
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.2.
|
82
|
+
version: 0.2.12
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: greenhouse_io-gitlab
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|
209
|
-
signing_key:
|
208
|
+
rubygems_version: 3.2.3
|
209
|
+
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Library for our shared connectors.
|
212
212
|
test_files: []
|