Skip to content

🐛 Make broken external link URL clickable in review comments#27

Merged
dvdstelt merged 1 commit into
mainfrom
fix/clickable-broken-link-url
Jun 5, 2026
Merged

🐛 Make broken external link URL clickable in review comments#27
dvdstelt merged 1 commit into
mainfrom
fix/clickable-broken-link-url

Conversation

@dvdstelt

@dvdstelt dvdstelt commented Jun 5, 2026

Copy link
Copy Markdown
Owner

What

When HyperHawk reports a broken external link, the URL was wrapped in a backtick code span, which renders as non-clickable text.

This wraps it in angle brackets (<url>) instead, so GitHub markdown renders it as a clickable autolink.

Why

Reviewers can click straight through to validate the dead link in one click, rather than copy-pasting the URL out of a code span.

Changes

  • src/report.ts: external broken-link comment now emits URL: <${link.url}>
  • dist/index.js: rebuilt bundle (the committed bundle is what the Action runs)

Internal/same-org file paths keep backticks, since those aren't clickable URLs.

Verification

  • npm run typecheck passes
  • npm run test:snapshot passes (snapshot's external errors are all auth/bot-blocked and skipped, so no URL: line is affected)

Wrap the URL in angle brackets instead of a backtick code span so it
renders as a clickable autolink in GitHub markdown, letting reviewers
validate the dead link in one click.
@dvdstelt dvdstelt self-assigned this Jun 5, 2026
@dvdstelt dvdstelt merged commit 0eebb54 into main Jun 5, 2026
3 checks passed
@dvdstelt dvdstelt deleted the fix/clickable-broken-link-url branch June 5, 2026 23:07
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.

1 participant