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, 19:30 UTC
fix(server): Forgejo and GitCafe pull requests link to their threads again (#22937)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
MarcoDotIO committed
Oct 21, 2026 at 18:08 UTC
22b89ef061a65c89488761a09e05e3dffc9e6316
2 files changed
+6
-1
apps/server/src/git/GitManager.test.ts
+5
@@ -1785,6 +1785,11 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1785
"gitlab.example.com/group/subgroup/repository",
1786
],
1787
["https://bitbucket.org/team/repository/pull-requests/42", "bitbucket.org/team/repository"],
1788
+ ["https://codeberg.org/team/repository/pulls/42", "codeberg.org/team/repository"],
1789
+ [
1790
+ "http://code.example:3000/forgejo/team/repository/pulls/42/files",
1791
+ "code.example/forgejo/team/repository",
1792
+ ],
1793
[
1794
"https://dev.azure.com/org/project/_git/repository/pullrequest/42",
1795
"dev.azure.com/org/project/_git/repository",
apps/server/src/git/GitManager.ts
+1
-1
@@ -260,7 +260,7 @@ export function pullRequestRepositoryKey(value: string): string | null {
260
try {
261
const url = new URL(value);
262
const match =
263
- /^(.*)(?:\/pull\/|\/-\/merge_requests\/|\/pull-requests\/|\/pullrequest\/)\d+(?:\/.*)?$/iu.exec(
263
+ /^(.*)(?:\/pulls?\/|\/-\/merge_requests\/|\/pull-requests\/|\/pullrequest\/)\d+(?:\/.*)?$/iu.exec(
264
url.pathname,
265
);
266
if (match?.[1] === undefined) return null;