From 27ae85385a4c82e87b882d3192df75c981c27d62 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 30 Aug 2025 17:10:25 +0800 Subject: [PATCH] fix(workflow): represent jsonSchema as single-line JSON string to avoid YAML multiline parse issues --- .github/prompts/similar_issues.prompt.yml | 55 +++++++++++------------ 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.github/prompts/similar_issues.prompt.yml b/.github/prompts/similar_issues.prompt.yml index 778e78055..327a79544 100644 --- a/.github/prompts/similar_issues.prompt.yml +++ b/.github/prompts/similar_issues.prompt.yml @@ -1,6 +1,6 @@ messages: - role: system - content: >- + content: |- You are a GitHub assistant with access to GitHub Model Context Protocol (MCP) tools in read-only mode. Your task is to search this repository's issues to find previously filed issues similar to the provided issue title and body. Use the @@ -17,30 +17,29 @@ messages: {{issue_body}} model: openai/gpt-5 responseFormat: json_schema -jsonSchema: - name: similar_issues_result - strict: true - schema: - type: object - properties: - matches: - type: array - items: - type: object - properties: - number: - type: integer - title: - type: string - url: - type: string - format: uri - state: - type: string - similarity_score: - type: number - minimum: 0 - maximum: 1 - required: [number, title, url] - required: [matches] - additionalProperties: false +jsonSchema: |- + { + "name": "similar_issues_result", + "strict": true, + "schema": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "number": { "type": "integer" }, + "title": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "state": { "type": "string" }, + "similarity_score": { "type": "number", "minimum": 0, "maximum": 1 } + }, + "required": ["number", "title", "url"] + } + } + }, + "required": ["matches"], + "additionalProperties": false + } + }