The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 03:15 UTC
fix(gitlab): author names link to GitLab profiles (#30418)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Antony committed
Nov 5, 2026 at 22:14 UTC
f7409b051d5d4a4d084e593488d1b7cd4a752713
2 files changed
+15
-1
packages/source-control-gitlab/src/shared/definition.test.ts
+12
@@ -86,6 +86,18 @@ describe("GitLab change request URLs", () => {
86
}),
87
).toBe("https://gitlab.com/group/sub/project/-/merge_requests/4");
88
});
89
+
90
+ it("links authors, bots included, to their profile on the repository's host", () => {
91
+ expect(definition.authorProfileUrl("TonybynMp4", "https://gitlab.com/group/sub/project")).toBe(
92
+ "https://gitlab.com/TonybynMp4",
93
+ );
94
+ expect(
95
+ definition.authorProfileUrl(
96
+ "project_278964_bot_89f97e2c",
97
+ "http://gitlab.internal:8080/team/app/-/merge_requests/5",
98
+ ),
99
+ ).toBe("http://gitlab.internal:8080/project_278964_bot_89f97e2c");
100
+ });
101
});
102
103
describe("GitLab remotes", () => {
packages/source-control-gitlab/src/shared/definition.ts
+3
-1
@@ -60,7 +60,9 @@ export const definition = defineSourceControl({
60
checkoutCommand: ({ number }) => `glab mr checkout ${number}`,
61
changeRequestCloseCommand: /\bglab\s+mr\s+(?:merge|close)\b/u,
62
changeRequestCreateCommand: /\bglab\s+mr\s+create\b/u,
63
- authorProfileUrl: () => null,
63
+ // Bot users, unlike GitHub's, have real profile pages.
64
+ authorProfileUrl: (login, repositoryUrl) =>
65
+ new URL(`/${encodeURIComponent(login)}`, repositoryUrl).toString(),
66
reviewSummaryRequired: () => false,
67
checkoutCommandArgument: (input) => CHECKOUT_COMMAND.exec(input)?.[1]?.trim() ?? null,
68
isChangeRequestReference: (url) => CHANGE_REQUEST_REFERENCE.test(url),