From e6a8606bcc775586e6169eecb513c1865e58877f Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:18:01 -0700 Subject: [PATCH] Update variables.tf --- variables.tf | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/variables.tf b/variables.tf index 6a2f959..a005bfe 100644 --- a/variables.tf +++ b/variables.tf @@ -108,11 +108,25 @@ variable "admin_teams" { default = [] } - +# Required Status Checks +# required_status_checks supports the following arguments: +# strict: (Optional) Require branches to be up to date before merging. Defaults to false. +# contexts: (Optional) The list of status checks to require in order to merge into this branch. +# No status checks are required by default. +# Note: This attribute can contain multiple string patterns. If specified, usual value is the job name. +# Otherwise, the job id is defaulted to. For workflows that use matrixes, append the matrix name to the +# value using the following pattern ([, ]). Matrixes should be specified +# based on the order of matrix properties in the workflow file. See GitHub Documentation for more +# information. For workflows that use reusable workflows, +# the pattern is / . +# This can extend multiple levels. variable "required_status_checks" { description = "Required Status Checks" - type = list(any) - default = [] + type = object({ + contexts = list(string) + strict = optional(bool, true) + }) + default = null } variable "archived" {