feat(git-clone): add coder_parameter order variables

pull/223/head
Michael Brewer 1 year ago
parent 3f8d456693
commit 8452de121e
No known key found for this signature in database
GPG Key ID: D7A137BA1254AFC7

@ -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

Loading…
Cancel
Save