Skip to content

Fix -t sanitization stripping / from owner/repo template values#4

Open
adjn wants to merge 2 commits into
BagToad:mainfrom
adjn:fix-template-sanitization
Open

Fix -t sanitization stripping / from owner/repo template values#4
adjn wants to merge 2 commits into
BagToad:mainfrom
adjn:fix-template-sanitization

Conversation

@adjn

@adjn adjn commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

The -t flag's character filter (tr -cd '[:alnum:]-') removed /, ., and _, which made it unusable for owner/repo format inputs like BagToad/mini-arc-template.

This was never triggered in practice because the default value is hardcoded and bypasses sanitization, but passing -t explicitly would silently mangle the input.

Fix: Preserve /, ., and _ in the character filter.

Spotted by Copilot code review on #3.

The character filter removed /, ., and _ which made -t unusable for
owner/repo format inputs like 'BagToad/mini-arc-template'. The default
value bypassed sanitization so this was never triggered in practice.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes -t template argument sanitization so owner/repo-style values (and common repo-name characters) are not silently mangled.

Changes:

  • Update -t flag sanitization to preserve /, ., and _ in template repo inputs.
Show a summary per file
File Description
gh-mini-arc Broadens the -t sanitization character allowlist so owner/repo template values remain intact.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread gh-mini-arc Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants