Devr.AI icon indicating copy to clipboard operation
Devr.AI copied to clipboard

BUG: Exclude Current Issue from Semantic Duplicate Matching

Open DhruvK278 opened this issue 6 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What happened?

📌 Issue Overview

The duplicate issue detection workflow is currently comparing a newly created issue against itself.

As a result, every newly opened issue gets a 100% similarity match with its own content and is incorrectly flagged as a potential duplicate.

🔍 Steps to Reproduce

  1. Ensure the duplicate issue detection workflow is enabled.
  2. Create a new issue in the repository with any title and description.
  3. Wait for the GitHub Action workflow to execute on the issues.opened event.
  4. Observe the workflow-generated comment on the newly created issue.
  5. Check the duplicate match results displayed by the workflow.

🎯 Expected Behavior

The newly created issue should be excluded from the semantic matching candidate set.

The workflow should only compare the new issue against other existing issues in the repository and should not generate a duplicate match for itself.

🚨 Actual Behavior

The workflow compares the newly created issue against itself and reports it as a duplicate with a similarity score of 100%.

Example:

  • Open Issue #1271
  • Workflow reports:
    • Duplicate Match: Issue #1271
    • Similarity: 100%
  • possible-duplicate label is added to the same issue.

📷 Screenshot

Image

Record

  • [x] I agree to follow this project's Code of Conduct
  • [x] I want to work on this issue

DhruvK278 avatar May 22 '26 13:05 DhruvK278