Skip to content

Commit a45a96f

Browse files
committed
fix: add RequiredWith to new optional variables
1 parent 677d001 commit a45a96f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github/resource_github_repository_file.go

+2
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@ func resourceGithubRepositoryFile() *schema.Resource {
126126
Default: "main",
127127
Optional: true,
128128
Description: "The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.",
129+
RequiredWith: []string{"autocreate_branch"},
129130
},
130131
"autocreate_branch_source_sha": {
131132
Type: schema.TypeString,
132133
Optional: true,
133134
Computed: true,
134135
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.",
136+
RequiredWith: []string{"autocreate_branch"},
135137
},
136138
},
137139
}

0 commit comments

Comments
 (0)