You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/git-config
Cian Johnston 49cff4b2aa
chore: remove usage of deprecated fields coder_workspace.owner_*
Updates the following modules to no longer reference fields matching
coder_workspace.owner_*:
- coder-login
- git-config
- github-upload-public-key
- jfrog-oauth
- vscode-desktop

Also updates dependency of coder/coder to 0.23.0 for the above.

For context, see https://github.com/coder/terraform-provider-coder/releases/tag/v0.23.0
1 year ago
..
README.md chore: bump version to 1.0.12 in README.md files (#230) 1 year ago
main.test.ts chore: remove usage of deprecated fields coder_workspace.owner_* 1 year ago
main.tf chore: remove usage of deprecated fields coder_workspace.owner_* 1 year ago

README.md

display_name description icon maintainer_github verified tags
Git Config Stores Git configuration from Coder credentials ../.icons/git.svg coder 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" {
  source   = "registry.coder.com/modules/git-config/coder"
  version  = "1.0.12"
  agent_id = coder_agent.example.id
}

TODO: Add screenshot

Examples

Allow users to override both username and email

module "git-config" {
  source             = "registry.coder.com/modules/git-config/coder"
  version            = "1.0.12"
  agent_id           = coder_agent.example.id
  allow_email_change = true
}

TODO: Add screenshot

Disallowing users from overriding both username and email

module "git-config" {
  source                = "registry.coder.com/modules/git-config/coder"
  version               = "1.0.12"
  agent_id              = coder_agent.example.id
  allow_username_change = false
  allow_email_change    = false
}