You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dotfiles): add custom variable for the dotfiles parameter description (#151)
## Description
When passing in custom dotfiles URIs, the format for those (`git@...` vs
`https://...`) are going to be different for different environments, and
admins are going to want to give their developers particular
instructions. This PR makes the parameter `description` customizable so
that we can change the default description a developer sees.
---
## Type of Change
- [ ] New module
- [ ] Bug fix
- [x] Feature/enhancement
- [ ] Documentation
- [ ] Other
---
## Module Information
<!-- Delete this section if not applicable -->
**Path:** `registry/coder/modules/dotfiles`
**New version:** `v1.2.0`
**Breaking change:** [ ] Yes [X] No
---
## Testing & Validation
- [X] Tests pass (`bun test`)
- [X] Code formatted (`bun run fmt`)
- [x] Changes tested locally
---------
Co-authored-by: DevCats <[email protected]>
Copy file name to clipboardExpand all lines: registry/coder/modules/dotfiles/main.tf
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ variable "agent_id" {
26
26
description="The ID of a Coder agent."
27
27
}
28
28
29
+
variable"description" {
30
+
type=string
31
+
description="A custom description for the dotfiles parameter. This is shown in the UI - and allows you to customize the instructions you give to your users."
32
+
default="Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
33
+
}
34
+
29
35
variable"default_dotfiles_uri" {
30
36
type=string
31
37
description="The default dotfiles URI if the workspace user does not provide one"
@@ -64,7 +70,7 @@ data "coder_parameter" "dotfiles_uri" {
64
70
display_name="Dotfiles URL"
65
71
order=var.coder_parameter_order
66
72
default=var.default_dotfiles_uri
67
-
description="Enter a URL for a [dotfiles repository](https://dotfiles.github.io) to personalize your workspace"
0 commit comments