Skip to content

Commit f0ca7b9

Browse files
authored
Merge pull request #59 from OctopusDeploy/wlthomson/deprecate-auto-create-release-resource
Deprecate auto_create_release resource
2 parents 3b8113c + bb6ceef commit f0ca7b9

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

docs/resources/project_auto_create_release.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
---
2-
# generated by https://github.com/hashicorp/terraform-plugin-docs
1+
---
32
page_title: "octopusdeploy_project_auto_create_release Resource - terraform-provider-octopusdeploy"
43
subcategory: ""
54
description: |-
@@ -10,6 +9,8 @@ description: |-
109

1110
This resource manages automatic release creation for a project. When enabled, new releases will be automatically created when new versions of the specified packages are available. The referenced packages must use built-in package repository feeds.
1211

12+
~> **WARNING This resource is deprecated and will be removed in a future version. Please use the `octopusdeploy_built_in_trigger` resource instead.
13+
1314
## Example Usage
1415

1516
```terraform
@@ -139,5 +140,3 @@ Required:
139140

140141
- `deployment_action` (String) The name of the deployment action that contains the package reference.
141142
- `package_reference` (String) The name of the package reference within the deployment action.
142-
143-

octopusdeploy_framework/schemas/project_auto_create_release.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ var _ EntitySchema = ProjectAutoCreateReleaseSchema{}
1414

1515
func (r ProjectAutoCreateReleaseSchema) GetResourceSchema() resourceSchema.Schema {
1616
return resourceSchema.Schema{
17-
Description: "This resource manages automatic release creation for a project. When enabled, new releases will be automatically created when new versions of the specified packages are available. The referenced packages must use built-in package repository feeds.",
17+
DeprecationMessage: "octopusdeploy_auto_create_release is deprecated and will be removed in a future version. Use octopusdeploy_built_in_trigger instead.",
18+
Description: "This resource manages automatic release creation for a project. When enabled, new releases will be automatically created when new versions of the specified packages are available. The referenced packages must use built-in package repository feeds.",
1819
Attributes: map[string]resourceSchema.Attribute{
1920
"id": util.ResourceString().
2021
Description("The unique identifier for this resource.").
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
3+
subcategory: ""
4+
description: |-
5+
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
6+
---
7+
8+
# {{.Name}} ({{.Type}})
9+
10+
{{ .Description | trimspace }}
11+
12+
~> **WARNING This resource is deprecated and will be removed in a future version. Please use the `octopusdeploy_built_in_trigger` resource instead.
13+
14+
## Example Usage
15+
16+
{{ tffile (printf "%s%s%s" "examples/resources/" .Name "/resource.tf") }}
17+
18+
{{ .SchemaMarkdown | trimspace }}

0 commit comments

Comments
 (0)