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 21, 22:15 UTC
fix(forgejo): tea's `pull` and `co` aliases count as checkout commands (#32713)
Co-authored-by: apolis-debug <353874714+apolis-debug@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
apolis-debug committed
Nov 12, 2026 at 00:08 UTC
7a7b8d7ad2083e887128d2e1370fc00a4d00f9af
2 files changed
+12
-1
packages/source-control-forgejo/src/shared/definition.test.ts
+11
@@ -149,6 +149,17 @@ describe("Forgejo CLI commands", () => {
149
}
150
expect(definition.changeRequestCloseCommand.test("tea pull checkout 7")).toBe(false);
151
});
152
+
153
+ it("reads the change request from every checkout spelling tea accepts", () => {
154
+ for (const command of [
155
+ "tea pulls checkout 7",
156
+ "tea pull checkout 7",
157
+ "tea pr co 7",
158
+ "tea pull co 7",
159
+ ]) {
160
+ expect(definition.checkoutCommandArgument(command), command).toBe("7");
161
+ }
162
+ });
163
});
164
165
describe("Forgejo change request host", () => {
packages/source-control-forgejo/src/shared/definition.ts
+1
-1
@@ -16,7 +16,7 @@ import {
16
} from "@t3tools/source-control-core/shared/definition";
17
import { icon } from "./icon.ts";
18
19
-const CHECKOUT_COMMAND = /^tea\s+(?:pr|pulls)\s+checkout\s+(.+)$/i;
19
+const CHECKOUT_COMMAND = /^tea\s+(?:pr|pulls?)\s+(?:checkout|co)\s+(.+)$/i;
20
const CHANGE_REQUEST_REFERENCE =
21
/^https?:\/\/[^/\s]+\/(?:[^/\s]+\/)+[^/\s]+\/pulls\/(\d+)(?:[/?#].*)?$/i;
22