Repository navigation
fix(message-parser): link addresses under the private-use .internal domain - #43124
mrityunjay-pandey wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: fda3b20 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Recognize .internal hosts for auto-linking packages/message-parser/src/utils.ts, packages/message-parser/tests/url.test.ts, .changeset/internal-links-autolink.md |
The valid-host list now includes .internal alongside localhost. Tests check HTTPS and protocol-less .internal URLs. A patch changeset records the fix. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested labels: type: bug
Suggested reviewers: ggazzo, tassoevan
Merge Risk: 
Minimal · up to fda3b
-
The change is limited to the intended .internal autolinking behavior and is ready to merge.
Pre-merge checks: 
5
-
Full details: Linked Issues check
-
Explanation
Issue
#32688requires websites ending in.internalto render as clickable hyperlinks.autoLinkaddsinternaltoprivateUseHosts, and the existing host validation accepts it. The new tests coverhttps://wiki.corp.internal/pageandwiki.internaland expectLINKnodes. The implementation also keeps the existing unknown-suffix test forhttps://internaltool.testtunchanged.
Full details: Out of Scope Changes check
-
Explanation
The changeset documents the fix. The source change implements
.internalhost recognition. The tests verify the linked issue behavior and preserve the unknown-suffix boundary. These changes support issue#32688and do not show unrelated scope.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Errors were encountered while retrieving linked issues.
Errors: 1
-
- JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Closes #32688
Proposed changes
The message parser only auto-links hosts whose suffix is on the public suffix list, plus
localhostand the domains listed inMessage_CustomDomain_AutoLink. ICANN reserved.internalfor private networks in 2024, so it will never be on that list, and addresses likehttps://wiki.corp.internal/pagerendered as plain text, even with an explicit scheme.autoLink(packages/message-parser/src/utils.ts) now treatsinternalas a valid host by default, the same way it already treatslocalhost.https://internaltool.testtstill isn't linked), andMessage_CustomDomain_AutoLinkworks as before.Steps to test or reproduce
https://wiki.corp.internal/pageandwiki.internalin any room.Tests
tests/url.test.ts: the two.internalcases fail on develop and pass with this change. All 734 message-parser tests pass.Summary by CodeRabbit
.internaladdresses now render as links instead of plain text.