Repository navigation
feat: show GitLab and Codeberg links the way GitHub ones are shown - #951
Merged
nunomaduro merged 2 commits intoOct 26, 2026
Merged
Conversation
Repositories, issues and merge or pull requests on gitlab.com and codeberg.org now show as their forge writes them, with its icon, like GitHub links already do. GitLab merge requests keep GitLab's own "!". Closes dev-null-sh#936 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
@zangetsu02 can you add some screenshots of where and how it renders, please? This really helps maintainers see the end result quickly and give feedback :) |
Contributor
Author
|
Hi @jubianchi, in the related issue there is a screenshot :) |
Contributor
|
my bad :) |
…t-hosts # Conflicts: # resources/js/components/linkified-text.tsx # tests/Unit/LinkifiedText.test.tsx
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #936
GitLab and Codeberg links now render like GitHub ones, with the forge's icon and
owner/repo: repositories, issues and merge/pull requests. GitLab merge requests keep GitLab's own!42.gitlab.com/gitlab-org/gitlabgitlab-org/gitlabgitlab.com/gitlab-org/gitlab/-/issues/42gitlab-org/gitlab#42gitlab.com/gitlab-org/gitlab/-/merge_requests/42gitlab-org/gitlab!42codeberg.org/forgejo/forgejo/pulls/42forgejo/forgejo#42The GitHub-only pattern and component in
linkified-text.tsxare now driven by a smallforgestable (host, owner pattern, item paths and their mark, reserved paths, icon), so GitHub behaves exactly as before and its existing tests pass unchanged. Icons come from Simple Icons (CC0).Not covered: self-hosted Forgejo/Gitea instances, since there is no way to tell them apart by domain. GitLab subgroup projects (
group/subgroup/project) stay plain URLs.Tests: 21 new cases in
tests/Unit/LinkifiedText.test.tsx(repositories, issues, MRs/PRs, static rendering, and links that must stay URLs).🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes