chore: add placeholder to git config inputs (#694)
Shows a placeholder of default values in the parameter input box
This commit is contained in:
parent
49a7985bc6
commit
6ac4d70405
@ -14,7 +14,7 @@ Runs a script that updates git credentials in the workspace to match the user's
|
|||||||
module "git-config" {
|
module "git-config" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/git-config/coder"
|
source = "registry.coder.com/coder/git-config/coder"
|
||||||
version = "1.0.32"
|
version = "1.0.33"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -29,7 +29,7 @@ TODO: Add screenshot
|
|||||||
module "git-config" {
|
module "git-config" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/git-config/coder"
|
source = "registry.coder.com/coder/git-config/coder"
|
||||||
version = "1.0.32"
|
version = "1.0.33"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
allow_email_change = true
|
allow_email_change = true
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ TODO: Add screenshot
|
|||||||
module "git-config" {
|
module "git-config" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/git-config/coder"
|
source = "registry.coder.com/coder/git-config/coder"
|
||||||
version = "1.0.32"
|
version = "1.0.33"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
allow_username_change = false
|
allow_username_change = false
|
||||||
allow_email_change = false
|
allow_email_change = false
|
||||||
|
|||||||
@ -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."
|
description = "Git user.email to be used for commits. Leave empty to default to Coder user's email."
|
||||||
display_name = "Git config user.email"
|
display_name = "Git config user.email"
|
||||||
mutable = true
|
mutable = true
|
||||||
|
styling = jsonencode({
|
||||||
|
placeholder = data.coder_workspace_owner.me.email
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
data "coder_parameter" "username" {
|
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."
|
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"
|
display_name = "Full Name for Git config"
|
||||||
mutable = true
|
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" {
|
resource "coder_env" "git_author_name" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user