From 7172f6df42dbef8a0588a4e6ebad67435573598a Mon Sep 17 00:00:00 2001 From: Viacheslav Kudinov Date: Wed, 27 Nov 2024 22:32:42 +0100 Subject: [PATCH 1/2] Removed documentation for github_repository_tag_protection resource as no longer supported by GitHub --- .../r/repository_tag_protection.html.markdown | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 website/docs/r/repository_tag_protection.html.markdown diff --git a/website/docs/r/repository_tag_protection.html.markdown b/website/docs/r/repository_tag_protection.html.markdown deleted file mode 100644 index cf04504bd6..0000000000 --- a/website/docs/r/repository_tag_protection.html.markdown +++ /dev/null @@ -1,42 +0,0 @@ ---- -layout: "github" -page_title: "GitHub: repository_tag_protection" -description: |- - Creates and manages repository tag protection within GitHub organizations or personal accounts ---- - -# github_repository_tag_protection - -This resource allows you to create and manage a repository tag protection for repositories within your GitHub organization or personal account. - -## Example Usage - -```hcl -resource "github_repository_tag_protection" "example" { - repository = "example-repository" - pattern = "v*" -} -``` - -## Argument Reference - -* `repository` - (Required) Name of the repository to add the tag protection to. - -* `pattern` - (Required) The pattern of the tag to protect. - -## Attributes Reference - -The following additional attributes are exported: - -* `id` - The ID of the tag protection. - -## Import - -Repository tag protections can be imported using the `name` of the repository, combined with the `id` of the tag protection, separated by a `/` character. -The `id` of the tag protection can be found using the [GitHub API](https://docs.github.com/en/rest/repos/tags#list-tag-protection-states-for-a-repository). - -Importing uses the name of the repository, as well as the ID of the tag protection, e.g. - -``` -$ terraform import github_repository_tag_protection.terraform my-repo/31077 -``` From 7ab93c1c5f8a333b2e9784690dc3b0ae83e608b7 Mon Sep 17 00:00:00 2001 From: Viacheslav Kudinov Date: Sat, 30 Nov 2024 08:29:30 +0100 Subject: [PATCH 2/2] Update github.erb to remove repository_tag_protection --- website/github.erb | 3 --- 1 file changed, 3 deletions(-) diff --git a/website/github.erb b/website/github.erb index 62cac71347..6f14c87445 100644 --- a/website/github.erb +++ b/website/github.erb @@ -349,9 +349,6 @@
  • github_repository_ruleset
  • -
  • - github_repository_tag_protection -
  • github_repository_topics