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
When a `github_repository_file` resource was created with a
provider version older than 6.3.0 the new attributes added in
that version causes a new commit to be created when there
should be no changes to the file.
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'",
128
-
Default: false,
125
+
Type: schema.TypeBool,
126
+
Optional: true,
127
+
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'",
128
+
Default: false,
129
+
DiffSuppressFunc: autoBranchDiffSuppressFunc,
129
130
},
130
131
"autocreate_branch_source_branch": {
131
-
Type: schema.TypeString,
132
-
Default: "main",
133
-
Optional: true,
134
-
Description: "The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.",
135
-
RequiredWith: []string{"autocreate_branch"},
132
+
Type: schema.TypeString,
133
+
Default: "main",
134
+
Optional: true,
135
+
Description: "The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.",
136
+
RequiredWith: []string{"autocreate_branch"},
137
+
DiffSuppressFunc: autoBranchDiffSuppressFunc,
136
138
},
137
139
"autocreate_branch_source_sha": {
138
-
Type: schema.TypeString,
139
-
Optional: true,
140
-
Computed: true,
141
-
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.",
142
-
RequiredWith: []string{"autocreate_branch"},
140
+
Type: schema.TypeString,
141
+
Optional: true,
142
+
Computed: true,
143
+
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.",
144
+
RequiredWith: []string{"autocreate_branch"},
145
+
DiffSuppressFunc: autoBranchDiffSuppressFunc,
143
146
},
144
147
},
145
148
}
@@ -507,3 +510,13 @@ func resourceGithubRepositoryFileDelete(d *schema.ResourceData, meta interface{}
0 commit comments