From 5aeb6a987dc4ad4be93c6dc254940abf104ac162 Mon Sep 17 00:00:00 2001 From: carlos-alm Date: Fri, 14 Aug 2026 08:51:09 -0600 Subject: [PATCH] fix(sweep): repo-detection fallback regex also accepts ssh:// github remotes The two-pass sed fallback only matched git@github.com: and https://github.com/ remote URL forms, silently rejecting the valid ssh://git@github.com/owner/repo form that the old, more permissive regex used to accept. Mirrors the same fix already applied to /resolve's copy of this pattern (PR #2362). Closes #2363 docs check acknowledged --- .claude/skills/sweep/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/sweep/SKILL.md b/.claude/skills/sweep/SKILL.md index 9cea10ea7..002fcf364 100644 --- a/.claude/skills/sweep/SKILL.md +++ b/.claude/skills/sweep/SKILL.md @@ -23,7 +23,7 @@ Detect the repo slug dynamically so this skill works in any fork or renamed org ```bash REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null \ || git remote get-url origin 2>/dev/null \ - | sed -nE 's#^(git@github\.com:|https://github\.com/)([^/]+/[^/]+)/?$#\2#p' \ + | sed -nE 's#^(git@github\.com:|https://github\.com/|ssh://git@github\.com/)([^/]+/[^/]+)/?$#\2#p' \ | sed -E 's/\.git$//') if [ -z "$REPO" ]; then echo "ERROR: could not detect GitHub repo slug — ensure 'gh' is authenticated or 'origin' points to GitHub"