Repository navigation
ci(docs): skip t.me links in the external URL checker - #2064
Conversation
Telegram deep-links (e.g. https://t.me/BotFather in the telegram adapter guide) are valid but unresolvable from GitHub Actions runners, so the external-URL check fails with a DNS error on every PR. Skip the t.me host the same way other CI-unreachable-but-valid domains are handled. Anchored to the scheme+host (^https?://t\.me/) so lookalike hosts that merely contain the substring t.me (e.g. content.medium.com) are not falsely skipped.
|
Verdict: Approve ✅ This adds a one-line skip pattern so the doc-link checker stops flagging Telegram's The one thing worth confirming: the pattern is anchored to scheme+host ( 🔍 Technical detailsVerified behavior — ran the regex directly against the PR's test-plan cases:
The last two matter because Strengths
Note (non-blocking): |
The external-URL doc check fails on every PR with a DNS error on
https://t.me/BotFather(indocs/guides/telegram-adapter.mdx). The link is valid — it's Telegram's canonical BotFather deep-link — butt.meis unresolvable from GitHub Actions runners, so a correct URL turns the check red for unrelated PRs (surfaced on #2057/#2058). This skips thet.mehost the same way other CI-unreachable-but-valid domains already are, so the checker stops flagging a good link.The pattern is anchored to scheme+host (
^https?://t\.me/) rather than a baret.mesubstring, so lookalike hosts that merely contain the substring (e.g.content.medium.com) are not falsely skipped.Note: this is only the CI-noise fix. The real follow-up — that the Telegram adapter has no end-to-end/live test proving it works — is tracked in #2062.
Test plan
should_skip("https://t.me/BotFather")/http://t.me/somebot→True.should_skip("https://content.medium.com/foo")andhttps://example.org/t.me/x→False(no false-positive from the substring).Verify external URLscheck passes on this PR.