@@ -37,7 +37,13 @@ func resourceGitlabServiceSlack() *schema.Resource {
37
37
Computed : true ,
38
38
},
39
39
"notify_only_default_branch" : {
40
- Type : schema .TypeBool ,
40
+ Type : schema .TypeBool ,
41
+ Optional : true ,
42
+ Computed : true ,
43
+ Deprecated : "use 'branches_to_be_notified' argument instead" ,
44
+ },
45
+ "branches_to_be_notified" : {
46
+ Type : schema .TypeString ,
41
47
Optional : true ,
42
48
Computed : true ,
43
49
},
@@ -140,6 +146,7 @@ func resourceGitlabServiceSlackSetToState(d *schema.ResourceData, service *gitla
140
146
d .Set ("username" , service .Properties .Username )
141
147
d .Set ("notify_only_broken_pipelines" , service .Properties .NotifyOnlyBrokenPipelines .UnmarshalJSON )
142
148
d .Set ("notify_only_default_branch" , service .Properties .NotifyOnlyDefaultBranch .UnmarshalJSON )
149
+ d .Set ("branches_to_be_notified" , service .Properties .BranchesToBeNotified )
143
150
d .Set ("push_events" , service .PushEvents )
144
151
d .Set ("push_channel" , service .Properties .PushChannel )
145
152
d .Set ("issues_events" , service .IssuesEvents )
@@ -175,6 +182,7 @@ func resourceGitlabServiceSlackCreate(d *schema.ResourceData, meta interface{})
175
182
opts .Username = gitlab .String (d .Get ("username" ).(string ))
176
183
opts .NotifyOnlyBrokenPipelines = gitlab .Bool (d .Get ("notify_only_broken_pipelines" ).(bool ))
177
184
opts .NotifyOnlyDefaultBranch = gitlab .Bool (d .Get ("notify_only_default_branch" ).(bool ))
185
+ opts .BranchesToBeNotified = gitlab .String (d .Get ("branches_to_be_notified" ).(string ))
178
186
opts .PushEvents = gitlab .Bool (d .Get ("push_events" ).(bool ))
179
187
opts .PushChannel = gitlab .String (d .Get ("push_channel" ).(string ))
180
188
opts .IssuesEvents = gitlab .Bool (d .Get ("issues_events" ).(bool ))
0 commit comments