summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/duplicate-issues.yml
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-11 23:51:08 -0400
committerDax Raad <[email protected]>2025-08-11 23:51:08 -0400
commit02cfdfbf5b59ed5bc150b5184ed7059f0264470b (patch)
treed101ec96bef96163ddf3d5ee172dc11b44ec7661 /.github/workflows/duplicate-issues.yml
parent1ec71e419b4ed24af77d8ffe197390927dc074e9 (diff)
downloadopencode-02cfdfbf5b59ed5bc150b5184ed7059f0264470b.tar.gz
opencode-02cfdfbf5b59ed5bc150b5184ed7059f0264470b.zip
ci: add duplicate issue detection workflow
Diffstat (limited to '.github/workflows/duplicate-issues.yml')
-rw-r--r--.github/workflows/duplicate-issues.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/duplicate-issues.yml b/.github/workflows/duplicate-issues.yml
new file mode 100644
index 000000000..8210a4cab
--- /dev/null
+++ b/.github/workflows/duplicate-issues.yml
@@ -0,0 +1,50 @@
+name: Duplicate Issue Detection
+
+on:
+ issues:
+ types: [opened]
+
+jobs:
+ check-duplicates:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ issues: write
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Install opencode
+ run: curl -fsSL https://opencode.ai/install | bash
+
+ - name: Check for duplicate issues
+ env:
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ opencode run "A new issue has been created: '${{ github.event.issue.title }}'
+
+ Issue body:
+ ${{ github.event.issue.body }}
+
+ Please search through existing issues in this repository to find any potential duplicates of this new issue. Consider:
+ 1. Similar titles or descriptions
+ 2. Same error messages or symptoms
+ 3. Related functionality or components
+ 4. Similar feature requests
+
+ If you find any potential duplicates, please comment on the new issue with:
+ - A brief explanation of why it might be a duplicate
+ - Links to the potentially duplicate issues
+ - A suggestion to check those issues first
+
+ Use this format for the comment:
+ '👋 This issue might be a duplicate of existing issues. Please check:
+ - #[issue_number]: [brief description of similarity]
+
+ If none of these address your specific case, please let us know how this issue differs.'
+
+ If no clear duplicates are found, do not comment."