forked from isometry/terraform-provider-github
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the need
We need to add custom property support for repositories to enable ruleset management based on custom properties.
Proposed Implementation
A new resource that manages a collection of custom properties per repository, in contrast to the current implementation which requires one resource per key-value pair (current implementation).
Example Usage:
resource "github_repository" "example" {
name = "example"
description = "My awesome codebase"
}resource "github_repository_custom_properties" "my_properties" {
repository = github_repository.example.name
properties = {
gitops-promotion-path = "main,staging,canary,production"
gitops-promotion-path-name = "standard"
}
}Benefits:
- Cleaner resource management (one resource per repository instead of one per property)
- Easier to maintain multiple properties for the same repository
- Enables efficient ruleset configuration based on repository custom properties
SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable