chore: mr approvals
This commit is contained in:
38
variable.tf
38
variable.tf
@@ -182,12 +182,6 @@ variable "attributes" {
|
||||
description = "custom attributes to be set for the project"
|
||||
}
|
||||
|
||||
variable "avatars_dir" {
|
||||
description = "Avatars directory png files"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "only_allow_merge_if_pipeline_succeeds" {
|
||||
description = "Set to true if you want allow merges only if a pipeline succeeds."
|
||||
type = bool
|
||||
@@ -234,4 +228,34 @@ variable "token_scope_repositories" {
|
||||
description = "CI_JOB_TOKEN repositories allowlist"
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
}
|
||||
|
||||
# Zbiór reguł approvals (project-level)
|
||||
variable "approvals" {
|
||||
description = "Mapa reguł approval dla projektu. Klucz = nazwa reguły."
|
||||
type = map(object({
|
||||
approvals_required = number
|
||||
users = optional(list(number), [])
|
||||
groups = optional(list(number), [])
|
||||
applies_to_all_protected_branches = optional(bool, true)
|
||||
protected_branch_ids = optional(list(number), null)
|
||||
rule_type = optional(string, "regular") # np. regular | any_approver
|
||||
report_type = optional(string, null) # np. coverage | scan_finding | license_scanning
|
||||
disable_importing_default_any_approver_rule_on_create = optional(bool, false)
|
||||
}))
|
||||
default = {}
|
||||
}
|
||||
|
||||
# Ustawienia zachowania approvals (MR-level settings)
|
||||
variable "approval_settings" {
|
||||
description = "Ustawienia zasad approvals na poziomie merge requestów."
|
||||
type = object({
|
||||
disable_overriding_approvers_per_merge_request = optional(bool, true)
|
||||
merge_requests_author_approval = optional(bool, false)
|
||||
merge_requests_disable_committers_approval = optional(bool, true)
|
||||
reset_approvals_on_push = optional(bool, true)
|
||||
required_password_to_approve = optional(bool, false)
|
||||
selective_code_owner_removals = optional(bool, false)
|
||||
})
|
||||
default = {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user