diff --git a/registry/coder/modules/git-config/README.md b/registry/coder/modules/git-config/README.md index 753e8de3..155c3790 100644 --- a/registry/coder/modules/git-config/README.md +++ b/registry/coder/modules/git-config/README.md @@ -14,7 +14,7 @@ Runs a script that updates git credentials in the workspace to match the user's module "git-config" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/git-config/coder" - version = "1.0.32" + version = "1.0.33" agent_id = coder_agent.main.id } ``` @@ -29,7 +29,7 @@ TODO: Add screenshot module "git-config" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/git-config/coder" - version = "1.0.32" + version = "1.0.33" agent_id = coder_agent.main.id allow_email_change = true } @@ -43,7 +43,7 @@ TODO: Add screenshot module "git-config" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/git-config/coder" - version = "1.0.32" + version = "1.0.33" agent_id = coder_agent.main.id allow_username_change = false allow_email_change = false diff --git a/registry/coder/modules/git-config/main.tf b/registry/coder/modules/git-config/main.tf index e8fea8fd..2d9f5440 100644 --- a/registry/coder/modules/git-config/main.tf +++ b/registry/coder/modules/git-config/main.tf @@ -44,6 +44,9 @@ data "coder_parameter" "user_email" { 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 + styling = jsonencode({ + placeholder = data.coder_workspace_owner.me.email + }) } data "coder_parameter" "username" { @@ -55,6 +58,9 @@ data "coder_parameter" "username" { 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 + styling = jsonencode({ + placeholder = coalesce(data.coder_workspace_owner.me.full_name, data.coder_workspace_owner.me.name) + }) } resource "coder_env" "git_author_name" {