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, 14:45 UTC
fix(client-runtime): keep inherited qualifier values as PR search text (#28095)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Behzad Motaghi committed
Nov 14, 2026 at 12:47 UTC
92c91aac8f40c454a740e861bd6b697cfc13600a
2 files changed
+10
-2
packages/client-runtime/src/pullRequestQuery.test.ts
+4
@@ -40,6 +40,10 @@ describe("reading qualifiers out of a typed query", () => {
40
const parsed = parsePullRequestQuery("milestone:v2 draft:maybe status: parser");
41
expect(parsed.filters).toEqual({ labels: [["milestone:v2"]] });
42
expect(parsed.text).toBe("draft:maybe status: parser");
43
+ expect(parsePullRequestQuery("review:constructor checks:__proto__ Status:toString")).toEqual({
44
+ text: "review:constructor checks:__proto__ Status:toString",
45
+ filters: {},
46
+ });
47
});
48
49
it("reads a quoted name holding a comma as the one label it is", () => {
packages/client-runtime/src/pullRequestQuery.ts
+6
-2
@@ -77,14 +77,18 @@ export function parsePullRequestQuery(raw: string): {
77
draft = (value.toLowerCase() === "true") !== negated ? "only" : "hide";
78
continue;
79
case "review": {
80
- const decision = negated ? undefined : REVIEW_VALUES[value.toLowerCase()];
80
+ const key = value.toLowerCase();
81
+ const decision =
82
+ !negated && Object.hasOwn(REVIEW_VALUES, key) ? REVIEW_VALUES[key] : undefined;
83
if (decision === undefined) break;
84
review = decision;
85
continue;
86
}
87
case "status":
88
case "checks": {
87
- const state = negated ? undefined : CHECKS_VALUES[value.toLowerCase()];
89
+ const key = value.toLowerCase();
90
+ const state =
91
+ !negated && Object.hasOwn(CHECKS_VALUES, key) ? CHECKS_VALUES[key] : undefined;
92
if (state === undefined) break;
93
checks = state;
94
continue;