The default value of repository_file.branch parameter is not consistent with GitHub API #1132
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Affected Resource(s)
Please list the resources as a list, for example:
github_repository_file
data.github_repository_file
Expected Behavior
The
branch
parameter ofrepository_file
resource/data source is consistent with the GitHub API and defaults to the name of the default branch of the repository (see: https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents--parameters).Actual Behavior
The
branch
parameter ofrepository_file
resource/data source defaults tomain
. (see: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_file#argument-reference + https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/repository_file#argument-reference)References
The text was updated successfully, but these errors were encountered: