From e99be2730020d9575338fb68b819276516271493 Mon Sep 17 00:00:00 2001 From: Judd Wilcox Date: Tue, 4 Oct 2022 16:56:32 -0500 Subject: [PATCH] add example for gitea_fork resource --- examples/resources/gitea_fork/resource.tf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/resources/gitea_fork/resource.tf diff --git a/examples/resources/gitea_fork/resource.tf b/examples/resources/gitea_fork/resource.tf new file mode 100644 index 0000000..4129a01 --- /dev/null +++ b/examples/resources/gitea_fork/resource.tf @@ -0,0 +1,23 @@ +resource "gitea_org" "org1" { + name = "org1" +} + +resource "gitea_org" "org2" { + name = "org2" +} + +resource "gitea_repository" "repo1_in_org1" { + username = gitea_org.org1.name + name = "repo1-in-org1" +} + +resource "gitea_fork" "user_fork_of_repo1_in_org1" { + owner = gitea_org.org1.name + repo = gitea_repository.repo1_in_org1.name +} + +resource "gitea_fork" "org2_fork_of_repo1_in_org1" { + owner = gitea_org.org1.name + repo = gitea_repository.repo1_in_org1.name + organization = gitea_org.org2.name +}