Explorar o código

fix: duplicates bot prompt (#1901)

Aiden Cline hai 1 ano
pai
achega
e132f6183d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      .github/workflows/duplicate-issues.yml

+ 4 - 1
.github/workflows/duplicate-issues.yml

@@ -27,10 +27,13 @@ jobs:
         run: |
         run: |
           opencode run -m anthropic/claude-sonnet-4-20250514 "A new issue has been created: '${{ github.event.issue.title }}'
           opencode run -m anthropic/claude-sonnet-4-20250514 "A new issue has been created: '${{ github.event.issue.title }}'
 
 
+          Issue number:
+          ${{ github.event.issue.number }}
           Issue body:
           Issue body:
           ${{ github.event.issue.body }}
           ${{ github.event.issue.body }}
 
 
-          Please search through existing issues in this repository to find any potential duplicates of this new issue. Consider:
+          Please search through existing issues (excluding #${{ github.event.issue.number }}) in this repository to find any potential duplicates of this new issue.
+          Consider:
           1. Similar titles or descriptions
           1. Similar titles or descriptions
           2. Same error messages or symptoms
           2. Same error messages or symptoms
           3. Related functionality or components
           3. Related functionality or components