33 lines
773 B
Terraform
33 lines
773 B
Terraform
variable "repository" {
|
|
type = string
|
|
}
|
|
|
|
variable "ruleset" {
|
|
type = object({
|
|
name = string
|
|
target = string
|
|
enforcement = string
|
|
conditions = object({
|
|
ref_name = object({
|
|
include = list(string)
|
|
exclude = list(string)
|
|
})
|
|
})
|
|
rules = object({
|
|
deletion = bool
|
|
non_fast_forward = bool
|
|
pull_request = object({
|
|
required_approving_review_count = number
|
|
dismiss_stale_reviews_on_push = bool
|
|
require_code_owner_review = bool
|
|
require_last_push_approval = bool
|
|
required_review_thread_resolution = bool
|
|
})
|
|
required_status_checks = object({
|
|
contexts = list(string)
|
|
strict = bool
|
|
})
|
|
})
|
|
})
|
|
}
|