fixed the return values to strings instead of JSON.parse
This commit is contained in:
@@ -9,7 +9,7 @@ export const milestoneList = tool({
|
||||
async execute(args, context) {
|
||||
try {
|
||||
const result = await $`tea milestone list --output json --state ${args.state}`.text()
|
||||
return JSON.parse(result)
|
||||
return result
|
||||
} catch (error: any) {
|
||||
return {
|
||||
error: "Failed to list milestones",
|
||||
@@ -40,7 +40,7 @@ export const milestoneCreate = tool({
|
||||
}
|
||||
|
||||
const result = await cmd.text()
|
||||
return JSON.parse(result)
|
||||
return result
|
||||
} catch (error: any) {
|
||||
return {
|
||||
error: "Failed to create milestone",
|
||||
|
||||
Reference in New Issue
Block a user