Skip to content

Commit d2f19df

Browse files
committed
Mark autocreate_branch as deprecated
Signed-off-by: Timo Sand <[email protected]>
1 parent 0d8ebfe commit d2f19df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

github/resource_github_repository_file.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func resourceGithubRepositoryFile() *schema.Resource {
111111
Description: "Automatically create the branch if it could not be found. Subsequent reads if the branch is deleted will occur from 'autocreate_branch_source_branch'",
112112
Default: false,
113113
DiffSuppressFunc: autoBranchDiffSuppressFunc,
114+
Deprecated: "Use `github_branch` resource instead",
114115
},
115116
"autocreate_branch_source_branch": {
116117
Type: schema.TypeString,
@@ -119,6 +120,7 @@ func resourceGithubRepositoryFile() *schema.Resource {
119120
Description: "The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.",
120121
RequiredWith: []string{"autocreate_branch"},
121122
DiffSuppressFunc: autoBranchDiffSuppressFunc,
123+
Deprecated: "Use `github_branch` resource instead",
122124
},
123125
"autocreate_branch_source_sha": {
124126
Type: schema.TypeString,
@@ -127,6 +129,7 @@ func resourceGithubRepositoryFile() *schema.Resource {
127129
Description: "The commit hash to start from, if 'autocreate_branch' is set. Defaults to the tip of 'autocreate_branch_source_branch'. If provided, 'autocreate_branch_source_branch' is ignored.",
128130
RequiredWith: []string{"autocreate_branch"},
129131
DiffSuppressFunc: autoBranchDiffSuppressFunc,
132+
Deprecated: "Use `github_branch` resource instead",
130133
},
131134
},
132135
CustomizeDiff: diffRepository,

0 commit comments

Comments
 (0)