@@ -141,13 +141,23 @@ func resourceStack() *schema.Resource {
141
141
Type : schema .TypeString ,
142
142
Optional : true ,
143
143
Description : "The ID of the Azure Devops integration. If not specified, the default integration will be used." ,
144
+ DiffSuppressFunc : func (_ , _ , new string , res * schema.ResourceData ) bool {
145
+ isDefault := res .Get ("azure_devops.0.is_default" ).(bool )
146
+
147
+ return isDefault && new == ""
148
+ },
144
149
},
145
150
"project" : {
146
151
Type : schema .TypeString ,
147
152
Required : true ,
148
153
Description : "The name of the Azure DevOps project" ,
149
154
ValidateDiagFunc : validations .DisallowEmptyString ,
150
155
},
156
+ "is_default" : {
157
+ Type : schema .TypeBool ,
158
+ Computed : true ,
159
+ Description : "Indicates whether this is the default Azure DevOps integration" ,
160
+ },
151
161
},
152
162
},
153
163
},
@@ -214,13 +224,23 @@ func resourceStack() *schema.Resource {
214
224
Type : schema .TypeString ,
215
225
Optional : true ,
216
226
Description : "The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used." ,
227
+ DiffSuppressFunc : func (_ , _ , new string , res * schema.ResourceData ) bool {
228
+ isDefault := res .Get ("bitbucket_cloud.0.is_default" ).(bool )
229
+
230
+ return isDefault && new == ""
231
+ },
217
232
},
218
233
"namespace" : {
219
234
Type : schema .TypeString ,
220
235
Required : true ,
221
236
Description : "The Bitbucket project containing the repository" ,
222
237
ValidateDiagFunc : validations .DisallowEmptyString ,
223
238
},
239
+ "is_default" : {
240
+ Type : schema .TypeBool ,
241
+ Computed : true ,
242
+ Description : "Indicates whether this is the default Bitbucket Cloud integration" ,
243
+ },
224
244
},
225
245
},
226
246
},
@@ -236,13 +256,23 @@ func resourceStack() *schema.Resource {
236
256
Type : schema .TypeString ,
237
257
Optional : true ,
238
258
Description : "The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used." ,
259
+ DiffSuppressFunc : func (_ , _ , new string , res * schema.ResourceData ) bool {
260
+ isDefault := res .Get ("bitbucket_datacenter.0.is_default" ).(bool )
261
+
262
+ return isDefault && new == ""
263
+ },
239
264
},
240
265
"namespace" : {
241
266
Type : schema .TypeString ,
242
267
Required : true ,
243
268
Description : "The Bitbucket project containing the repository" ,
244
269
ValidateDiagFunc : validations .DisallowEmptyString ,
245
270
},
271
+ "is_default" : {
272
+ Type : schema .TypeBool ,
273
+ Computed : true ,
274
+ Description : "Indicates whether this is the default Bitbucket Datacenter integration" ,
275
+ },
246
276
},
247
277
},
248
278
},
@@ -342,13 +372,23 @@ func resourceStack() *schema.Resource {
342
372
Type : schema .TypeString ,
343
373
Optional : true ,
344
374
Description : "The ID of the Gitlab integration. If not specified, the default integration will be used." ,
375
+ DiffSuppressFunc : func (_ , _ , new string , res * schema.ResourceData ) bool {
376
+ isDefault := res .Get ("gitlab.0.is_default" ).(bool )
377
+
378
+ return isDefault && new == ""
379
+ },
345
380
},
346
381
"namespace" : {
347
382
Type : schema .TypeString ,
348
383
Required : true ,
349
384
Description : "The GitLab namespace containing the repository" ,
350
385
ValidateDiagFunc : validations .DisallowEmptyString ,
351
386
},
387
+ "is_default" : {
388
+ Type : schema .TypeBool ,
389
+ Computed : true ,
390
+ Description : "Indicates whether this is the default GitLab integration" ,
391
+ },
352
392
},
353
393
},
354
394
},
0 commit comments