You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource/gitlab_project: fix backwards-compatibility with 14.1 regarding the squash_option. Closes #770
I gotta admit that I'm not support happy with the implementation,
nor the approach in general.
However, I think we agree that it's best to not break backwards
compatiblity as first priority.
In any case, we have #550 to discuss that :)
Closes #770
Closes #776
-**request_access_enabled** (Boolean) Allow users to request member access.
79
79
-**shared_runners_enabled** (Boolean) Enable shared runners for this project.
80
80
-**snippets_enabled** (Boolean) Enable snippets for the project.
81
-
-**squash_option** (String) Squash commits when merge request. Valid values are `never`, `always`, `default_on`, or `default_off`. The default value is `default_off`.
81
+
-**squash_option** (String) Squash commits when merge request. Valid values are `never`, `always`, `default_on`, or `default_off`. The default value is `default_off`.[GitLab >= 14.1]
82
82
-**tags** (Set of String) Tags (topics) of the project.
83
83
-**template_name** (String) When used without use_custom_template, name of a built-in project template. When used with use_custom_template, name of a custom project template. This option is mutually exclusive with `template_project_id`.
84
84
-**template_project_id** (Number) When used with use_custom_template, project ID of a custom project template. This is preferable to using template_name since template_name may be ambiguous (enterprise edition). This option is mutually exclusive with `template_name`.
Copy file name to clipboardExpand all lines: internal/provider/resource_gitlab_project.go
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ var resourceGitLabProjectSchema = map[string]*schema.Schema{
193
193
Optional: true,
194
194
},
195
195
"squash_option": {
196
-
Description: "Squash commits when merge request. Valid values are `never`, `always`, `default_on`, or `default_off`. The default value is `default_off`.",
196
+
Description: "Squash commits when merge request. Valid values are `never`, `always`, `default_on`, or `default_off`. The default value is `default_off`. [GitLab >= 14.1]",
0 commit comments