Skip to content

bot: keep full URL when Slack truncates a link label#867

Merged
brainexe merged 1 commit into
masterfrom
fix/truncated-pr-link-matching
Jul 1, 2026
Merged

bot: keep full URL when Slack truncates a link label#867
brainexe merged 1 commit into
masterfrom
fix/truncated-pr-link-matching

Conversation

@blumentopfi

Copy link
Copy Markdown
Collaborator

Incoming Slack links of the form <url|label> were cleaned to their display label. When Slack truncates a long label (indicated by a "…" ellipsis), the truncated label replaced the URL, so the pull request watcher's regex could no longer find the /pull-requests/ path and responded with "Command ... not found".

Keep the full URL instead of the label whenever the label is truncated, while still preferring the human-readable label in the normal case.

Incoming Slack links of the form <url|label> were cleaned to their
display label. When Slack truncates a long label (indicated by a "…"
ellipsis), the truncated label replaced the URL, so the pull request
watcher's regex could no longer find the /pull-requests/<number> path
and responded with "Command ... not found".

Keep the full URL instead of the label whenever the label is truncated,
while still preferring the human-readable label in the normal case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@brainexe brainexe merged commit 2701842 into master Jul 1, 2026
12 checks passed
@brainexe brainexe deleted the fix/truncated-pr-link-matching branch July 1, 2026 12:04
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