From 8452de121ed3146409d0f218ff7626dc0464f4df Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Thu, 11 Apr 2024 15:43:33 -0700 Subject: [PATCH] feat(git-clone): add coder_parameter order variables --- git-config/main.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/git-config/main.tf b/git-config/main.tf index d92a0b7..050df61 100644 --- a/git-config/main.tf +++ b/git-config/main.tf @@ -26,6 +26,17 @@ variable "allow_email_change" { default = false } +variable "coder_parameter_user_email_order" { + type = number + description = "The order determines the position of the 'user_email' template parameter in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by name (ascending order)." + default = null +} + +variable "coder_parameter_username_order" { + type = number + description = "The order determines the position of the 'username' template parameter in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by name (ascending order)." + default = null +} data "coder_workspace" "me" {} @@ -34,6 +45,7 @@ data "coder_parameter" "user_email" { name = "user_email" type = "string" default = "" + order = var.coder_parameter_user_email_order description = "Git user.email to be used for commits. Leave empty to default to Coder user's email." display_name = "Git config user.email" mutable = true @@ -44,6 +56,7 @@ data "coder_parameter" "username" { name = "username" type = "string" default = "" + order = var.coder_parameter_username_order description = "Git user.name to be used for commits. Leave empty to default to Coder user's Full Name." display_name = "Full Name for Git config" mutable = true