fix: refine issue similarity prompt to exclude current issue ID

- Updated the prompt to ensure that issues with the same ID/number as the current issue are excluded from the similarity search results.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-09-20 15:57:08 +08:00
parent 49ef017af5
commit d5f1440fe2
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 4 additions and 2 deletions

View File

@ -5,8 +5,10 @@ messages:
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
GitHub tools via MCP to perform the search and retrieve real issue data (do not
fabricate results). Consider semantic similarity across title and body. Exclude
the current issue. Return up to 3 of the most similar past issues. If none are
fabricate results).
Consider semantic similarity across title and body. Exclude
issues with the same ID/number as the current issue. Return up to 3 of the most similar past issues. If none are
reasonably similar, return an empty list. Output must follow the response schema
exactly and include only data you actually retrieved from GitHub tools.
The current GitHub repository is: "{{repository}}".