From 8a1e42a896d6b48ab15f3e1f9d265a1ef23ad7dc Mon Sep 17 00:00:00 2001 From: anvayeeem <246858522+anvayeeem@users.noreply.github.com> Date: Fri, 27 Mar 2026 18:47:24 +0530 Subject: [PATCH 1/2] Add Duplicate Issue Detector workflow --- .../workflows/duplicate_issue_detector.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/duplicate_issue_detector.yml diff --git a/.github/workflows/duplicate_issue_detector.yml b/.github/workflows/duplicate_issue_detector.yml new file mode 100644 index 0000000..726d5de --- /dev/null +++ b/.github/workflows/duplicate_issue_detector.yml @@ -0,0 +1,28 @@ +name: Duplicate Issue Detector + +on: + issues: + types: [opened, edited] + +jobs: + duplicate-issues: + runs-on: ubuntu-latest + permissions: + issues: write + + steps: + - name: Check for Duplicate Issues + uses: actions-cool/issues-similarity-analysis@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + filter-threshold: 0.65 + title-excludes: 'bug, enhancement, feature request, feature, request, help, question' + comment-title: '### 🤖 Potential Duplicate Issues Detected' + comment-body: | + We noticed this issue might be a duplicate of an existing one. + Please review the issues listed above before proceeding. + If it is a duplicate, consider closing this issue and contributing + to the original instead. + > _This is an automated suggestion — maintainers will make the final call._ + since-days: 365 + labels: 'duplicate' From 315d73c06803e5ed666973c00c496406a523f72e Mon Sep 17 00:00:00 2001 From: anvayeeem <246858522+anvayeeem@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:06:03 +0530 Subject: [PATCH 2/2] add GitHub Actions workflow to detect duplicate issues --- .github/workflows/duplicate_issue_detector.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/duplicate_issue_detector.yml b/.github/workflows/duplicate_issue_detector.yml index 726d5de..ba4f78a 100644 --- a/.github/workflows/duplicate_issue_detector.yml +++ b/.github/workflows/duplicate_issue_detector.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check for Duplicate Issues - uses: actions-cool/issues-similarity-analysis@v1 + uses: actions-cool/issues-similarity-analysis@0a5ea211e6a178915f0f754968fc94ff845bcb41 # v1.3.2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} filter-threshold: 0.65