Skip to content

fix(dotfiles): allow tilde (~) in git repository URLs#763

Merged
DevelopmentCats merged 1 commit intomainfrom
fix/dotfiles-tilde-in-url
Feb 26, 2026
Merged

fix(dotfiles): allow tilde (~) in git repository URLs#763
DevelopmentCats merged 1 commit intomainfrom
fix/dotfiles-tilde-in-url

Conversation

@blinkagent
Copy link
Contributor

@blinkagent blinkagent bot commented Feb 26, 2026

Description

The URL validation regex in the dotfiles module was rejecting URLs containing tilde (~) characters, which are commonly used in Bitbucket Server for user repositories (e.g. ssh://git@bitbucket.example.org:7999/~username/repo.git).

This adds ~ to the allowed character set in all three validation regexes (for default_dotfiles_uri, dotfiles_uri, and the coder_parameter validation).

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/dotfiles
New version: v1.3.1
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Fixes #762

The URL validation regex was rejecting URLs containing tilde characters,
which are commonly used in Bitbucket Server for user repositories
(e.g. ssh://git@bitbucket.example.org:7999/~username/repo.git).

Adds ~ to the allowed character set in all three validation regexes
and adds a test case for tilde URLs.

Fixes #762
@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Feb 26, 2026
Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matifali matifali self-assigned this Feb 26, 2026
@DevelopmentCats DevelopmentCats merged commit 6ec506e into main Feb 26, 2026
5 checks passed
@DevelopmentCats DevelopmentCats deleted the fix/dotfiles-tilde-in-url branch February 26, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotfiles: tilde sign in git repository URL is not allowed

2 participants