Merge pull request 'Manage IUCLabs GitHub org settings' (#121) from benvin/github-iuclabs-org into main
ci/woodpecker/push/apply Pipeline was successful

Reviewed-on: #121
This commit was merged in pull request #121.
This commit is contained in:
2026-11-10 23:18:32 +11:00
8 changed files with 265 additions and 5 deletions
+34
View File
@@ -114,3 +114,37 @@ variable "repository" {
error_message = "Unknown teams referenced: ${join(", ", distinct(flatten([for name, repo in var.repository : [for e in concat(repo.maintainers, repo.codeowners) : "${name}/${e}" if startswith(e, "@") && !contains(keys(var.team), trimprefix(e, "@"))]])))}."
}
}
variable "settings" {
description = "Organisation settings from config.yaml; null leaves them unmanaged"
type = object({
name = optional(string)
description = optional(string)
blog = optional(string)
location = optional(string)
email = optional(string)
twitter_username = optional(string)
company = optional(string)
default_repository_permission = optional(string, "read")
members_can_create_repositories = optional(bool, false)
public_runners = optional(bool, false)
})
default = null
validation {
condition = var.settings == null || contains(["read", "none"], try(var.settings.default_repository_permission, ""))
error_message = "default_repository_permission must be read or none."
}
}
variable "billing_email" {
description = "Organisation billing email, from TF_VAR_billing_email; required when settings is set"
type = string
default = null
sensitive = true
validation {
condition = var.settings == null || var.billing_email != null
error_message = "billing_email must be set when settings is set."
}
}