blink-so[bot] b427fe3f6a docs: Standardize module examples to use coder_agent.main
Update all module README files to use coder_agent.main instead of
coder_agent.example for consistency with existing template conventions.

Changes:
- Updated 50+ module README.md files
- Updated root README.md and CONTRIBUTING.md
- Updated examples/templates/main.tf

This ensures copy-paste examples from module docs work seamlessly
with the majority of templates that use "main" as the agent name.
2025-11-26 18:56:30 +00:00

1.3 KiB

display_name description icon verified tags
Git Config Stores Git configuration from Coder credentials ../../../../.icons/git.svg true
helper
git

git-config

Runs a script that updates git credentials in the workspace to match the user's Coder credentials, optionally allowing to the developer to override the defaults.

module "git-config" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/git-config/coder"
  version  = "1.0.31"
  agent_id = coder_agent.main.id
}

TODO: Add screenshot

Examples

Allow users to override both username and email

module "git-config" {
  count              = data.coder_workspace.me.start_count
  source             = "registry.coder.com/coder/git-config/coder"
  version            = "1.0.31"
  agent_id           = coder_agent.main.id
  allow_email_change = true
}

TODO: Add screenshot

Disallowing users from overriding both username and email

module "git-config" {
  count                 = data.coder_workspace.me.start_count
  source                = "registry.coder.com/coder/git-config/coder"
  version               = "1.0.31"
  agent_id              = coder_agent.main.id
  allow_username_change = false
  allow_email_change    = false
}