@@ -183,7 +183,9 @@ func resourceGitlabGroupCreate(ctx context.Context, d *schema.ResourceData, meta
183
183
options .ShareWithGroupLock = gitlab .Bool (v .(bool ))
184
184
}
185
185
186
- if v , ok := d .GetOk ("require_two_factor_authentication" ); ok {
186
+ // nolint:staticcheck // SA1019 ignore deprecated GetOkExists
187
+ // lintignore: XR001 // TODO: replace with alternative for GetOkExists
188
+ if v , ok := d .GetOkExists ("require_two_factor_authentication" ); ok {
187
189
options .RequireTwoFactorAuth = gitlab .Bool (v .(bool ))
188
190
}
189
191
@@ -195,19 +197,25 @@ func resourceGitlabGroupCreate(ctx context.Context, d *schema.ResourceData, meta
195
197
options .ProjectCreationLevel = stringToProjectCreationLevel (v .(string ))
196
198
}
197
199
198
- if v , ok := d .GetOk ("auto_devops_enabled" ); ok {
200
+ // nolint:staticcheck // SA1019 ignore deprecated GetOkExists
201
+ // lintignore: XR001 // TODO: replace with alternative for GetOkExists
202
+ if v , ok := d .GetOkExists ("auto_devops_enabled" ); ok {
199
203
options .AutoDevopsEnabled = gitlab .Bool (v .(bool ))
200
204
}
201
205
202
206
if v , ok := d .GetOk ("subgroup_creation_level" ); ok {
203
207
options .SubGroupCreationLevel = stringToSubGroupCreationLevel (v .(string ))
204
208
}
205
209
206
- if v , ok := d .GetOk ("emails_disabled" ); ok {
210
+ // nolint:staticcheck // SA1019 ignore deprecated GetOkExists
211
+ // lintignore: XR001 // TODO: replace with alternative for GetOkExists
212
+ if v , ok := d .GetOkExists ("emails_disabled" ); ok {
207
213
options .EmailsDisabled = gitlab .Bool (v .(bool ))
208
214
}
209
215
210
- if v , ok := d .GetOk ("mentions_disabled" ); ok {
216
+ // nolint:staticcheck // SA1019 ignore deprecated GetOkExists
217
+ // lintignore: XR001 // TODO: replace with alternative for GetOkExists
218
+ if v , ok := d .GetOkExists ("mentions_disabled" ); ok {
211
219
options .MentionsDisabled = gitlab .Bool (v .(bool ))
212
220
}
213
221
@@ -232,7 +240,9 @@ func resourceGitlabGroupCreate(ctx context.Context, d *schema.ResourceData, meta
232
240
233
241
var updateOptions gitlab.UpdateGroupOptions
234
242
235
- if v , ok := d .GetOk ("prevent_forking_outside_group" ); ok {
243
+ // nolint:staticcheck // SA1019 ignore deprecated GetOkExists
244
+ // lintignore: XR001 // TODO: replace with alternative for GetOkExists
245
+ if v , ok := d .GetOkExists ("prevent_forking_outside_group" ); ok {
236
246
updateOptions .PreventForkingOutsideGroup = gitlab .Bool (v .(bool ))
237
247
}
238
248
0 commit comments