Closed juddowilcox closed 1 year ago
This seems like a more generic problem and something that is very specific to your usecase. might i suggest to checkout https://github.com/arl-sh/terraform-provider-git to have a separation of concerns here?
Ping @juddowilcox , did you check out the other provider i mentioned?
Closing due to inactivity
Is your feature request related to a problem? Please describe. There is no declarative means to create/read/update/delete a file in/from/in/from a repository in gitea.
Describe the solution you'd like Add a gitea_file or, alternatively, a gitea_repository_file resource that adds a file to a repository in gitea using https://gitea.com/gitea/go-sdk/src/branch/main/gitea/repo_file.go
Describe alternatives you've considered
Additional context Ultimately I need a crossplane provider to be able to add a file to a repository in gitea. The shortest path to that is to add the resource to the gitea terraform provider and then generate the crossplane provider from the terraform provider using terrajet. I already have this terrajet provider so the only piece that's missing is the new resource in the terraform provider.
I am willing to implement this but I would need guidance, as you already know, to approximate the quality of the rest of the gitea terraform provider. I am also willing to implement tests but, again, I would need guidance.