瀏覽代碼

fix: duplicates bot prompt (#1901)

Aiden Cline 1 年之前
父節點
當前提交
e132f6183d
共有 1 個文件被更改,包括 4 次插入1 次删除
  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