feat: add branch_protection resource #72
Reference in New Issue
Block a user
Delete Branch "venc0r/terraform-provider-gitea:branch_protection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
added terraform tests for the resource
In my opionion the
terraform validateshould check the syntax of the examples. By running without any directory specified, it runs in the root dir, where no tf code is found and complains about my tests, because the-test-directorydefaults totests.That reveals that there are some bugs in the examples at the moment. I will update the examples and point the
tf validateto the examples dir in the pipeline.09526153bato4e094034ef4e094034eftodfc2023664dfc2023664to5a80d394245a80d39424to4205db6f3b4205db6f3bto2972a542f6The
terraform validateuses the released version of the provider not the code from the pr. I`m not sure about the purpose of this pipeline, it will never validate the example code before the new version is published published. It will fail after releasing with not up to date examples or it will fail before the release with updated examples which are (mayby) not supported by the current provider version.I would suggest to build the provider from the pr with development override enabled and test the example for the current commit.
The validate does not work recursive, so only the
./examples/main.tfis tested, the more useful examples in the./examples/resourcesdirectory will still not be validated.