Import pre-existing Gitea branch protections #61
Reference in New Issue
Block a user
Delete Branch "benvin/imports-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?
Why
Error: Branch protection already existbecause the nine repos protected in #60 already have live branch protection in Gitea that is absent from Terraform state, so Terraform tries to create rules that already exist and Gitea rejects them.gitea_repository_branch_protection(// TODO: importer ?), so the existing rules cannot be adopted on that version.How
gitea_repository_branch_protection(id format<org>/<repo>/<rule_name>).