extract_issue_ref_from_message misparses /issues/ URLs — drops instance and repo #176

Closed
opened 2026-04-06 04:35:52 +02:00 by shoko · 0 comments
Owner

Summary

extract_issue_ref_from_message() in kugetsu-session.sh incorrectly parses full URLs containing /issues/. The instance prefix is dropped and /issues/ becomes part of the repo field.

Affected Code

File: kugetsu-session.sh, extract_issue_ref_from_message() (lines 159-167)

if [[ "$message" =~ (https?://[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+/[a-zA-Z0-9._-]+/(issues|pull)/[0-9]+) ]]; then
    local url="${BASH_REMATCH[1]}"
    local path=$(echo "$url" | sed s
## Summary `extract_issue_ref_from_message()` in `kugetsu-session.sh` incorrectly parses full URLs containing `/issues/`. The instance prefix is dropped and `/issues/` becomes part of the repo field. ## Affected Code **File:** `kugetsu-session.sh`, `extract_issue_ref_from_message()` (lines 159-167) ```bash if [[ "$message" =~ (https?://[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+/[a-zA-Z0-9._-]+/(issues|pull)/[0-9]+) ]]; then local url="${BASH_REMATCH[1]}" local path=$(echo "$url" | sed s
shoko closed this issue 2026-04-06 04:54:12 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#176