Skip to content

Commit 53b7bb8

Browse files
authored
Revert "feat: add custom_property block for repository resource (#9)" (#16)
This reverts commit 7eb69cf.
1 parent 0bc2353 commit 53b7bb8

File tree

7 files changed

+1
-925
lines changed

7 files changed

+1
-925
lines changed

docs/resources/repository.md

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -46,64 +46,6 @@ resource "github_repository" "example" {
4646
}
4747
```
4848

49-
## Example Usage with Custom Properties
50-
51-
```terraform
52-
# This example matches the user's requested format with native HCL lists
53-
resource "github_repository" "example" {
54-
name = "example"
55-
description = "My awesome codebase"
56-
57-
custom_property {
58-
name = "foo"
59-
value = ["bar"]
60-
}
61-
62-
custom_property {
63-
name = "boolean"
64-
value = ["false"]
65-
}
66-
67-
custom_property {
68-
name = "multiselect"
69-
value = ["goo", "zoo"]
70-
}
71-
72-
custom_property {
73-
name = "singleselect"
74-
value = ["acme"]
75-
}
76-
}
77-
```
78-
79-
## Example Usage with Collaborative Custom Property Management
80-
81-
The following example illustrates collaborative management of repository custom properties by setting `exclusive_custom_properties = false` and delegating an additional property to the standalone `github_repository_custom_property` resource.
82-
83-
```terraform
84-
# This example demonstrates collaborative management of repository custom properties.
85-
# It assumes the organization already defines the referenced custom properties.
86-
87-
resource "github_repository" "example" {
88-
name = "example-shared-custom-props"
89-
description = "Repository with collaboratively managed custom properties"
90-
91-
exclusive_custom_properties = false
92-
93-
custom_property {
94-
name = "deployment-environment"
95-
value = ["production"]
96-
}
97-
}
98-
99-
resource "github_repository_custom_property" "compliance" {
100-
repository = github_repository.example.name
101-
property_name = "compliance-tier"
102-
property_type = "string"
103-
property_value = ["regulated"]
104-
}
105-
```
106-
10749
<!-- schema generated by tfplugindocs -->
10850
## Schema
10951

@@ -121,11 +63,9 @@ resource "github_repository_custom_property" "compliance" {
12163
- `archive_on_destroy` (Boolean) Set to 'true' to archive the repository instead of deleting on destroy.
12264
- `archived` (Boolean) Specifies if the repository should be archived. Defaults to 'false'. NOTE Currently, the API does not support unarchiving.
12365
- `auto_init` (Boolean) Set to 'true' to produce an initial commit in the repository.
124-
- `custom_property` (Block Set) Custom properties for the repository. (see [below for nested schema](#nestedblock--custom_property))
12566
- `default_branch` (String, Deprecated) Can only be set after initial repository creation, and only if the target branch exists
12667
- `delete_branch_on_merge` (Boolean) Automatically delete head branch after a pull request is merged. Defaults to 'false'.
12768
- `description` (String) A description of the repository.
128-
- `exclusive_custom_properties` (Boolean) Whether this resource exclusively manages all custom properties. Defaults to 'true'; if set to 'false', only properties defined in custom_property blocks will be managed by this resource, allowing collaborative management of custom property settings.
12969
- `gitignore_template` (String) Use the name of the template without the extension. For example, 'Haskell'.
13070
- `has_discussions` (Boolean) Set to 'true' to enable GitHub Discussions on the repository. Defaults to 'false'.
13171
- `has_downloads` (Boolean) Set to 'true' to enable the (deprecated) downloads features on the repository.
@@ -151,7 +91,6 @@ resource "github_repository_custom_property" "compliance" {
15191

15292
### Read-Only
15393

154-
- `all_custom_properties` (Map of String) All custom properties set on the repository, including those not managed by this resource.
15594
- `etag` (String)
15695
- `full_name` (String) A string of the form 'orgname/reponame'.
15796
- `git_clone_url` (String) URL that can be provided to 'git clone' to clone the repository anonymously via the git protocol.
@@ -164,15 +103,6 @@ resource "github_repository_custom_property" "compliance" {
164103
- `ssh_clone_url` (String) URL that can be provided to 'git clone' to clone the repository via SSH.
165104
- `svn_url` (String) URL that can be provided to 'svn checkout' to check out the repository via GitHub's Subversion protocol emulation.
166105

167-
<a id="nestedblock--custom_property"></a>
168-
### Nested Schema for `custom_property`
169-
170-
Required:
171-
172-
- `name` (String) The name of the custom property.
173-
- `value` (List of String) The value(s) of the custom property. For single-value properties, provide a list with one element. For multi-select properties, provide multiple elements.
174-
175-
176106
<a id="nestedblock--pages"></a>
177107
### Nested Schema for `pages`
178108

examples/resources/github_organization_custom_property/README.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

examples/resources/github_repository/example_3.tf

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/resources/github_repository/example_4.tf

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)