fixed tea pr list
This commit is contained in:
@@ -9,11 +9,12 @@ export const prList = tool({
|
||||
.enum(["open", "closed", "all"])
|
||||
.default("open")
|
||||
.describe("Filter by state"),
|
||||
limit: tool.schema.number().default(30).describe("Number of PRs to return"),
|
||||
limit: tool.schema.number().optional().describe("Number of PRs to return"),
|
||||
},
|
||||
async execute(args, context) {
|
||||
try {
|
||||
const cmd = $`tea pr list --output json --state ${args.state} --limit ${args.limit ?? 30}`;
|
||||
const limit = args.limit || 30;
|
||||
const cmd = $`tea pr list --output json --state ${args.state} --limit ${limit}`;
|
||||
|
||||
const result = await cmd.text();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user