integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
887 stars 730 forks source link

[FEAT]: Can the repository `auto_init` create an empty commit? #2134

Open moltar opened 7 months ago

moltar commented 7 months ago

Describe the need

Currently, auto_init adds a placeholder README.md file with a single # Test line.

I think it'd be better if a single, empty commit was added. It would then have no conflicts with repository contents and still have a commit, and a branch.

git commit --allow-empty -m Init

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

kfcampbell commented 7 months ago

I like this idea! I'd be happy to review a PR that changed this functionality.