Devr.AI
Devr.AI copied to clipboard
BUG: Exclude Current Issue from Semantic Duplicate Matching
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
- Ensure the duplicate issue detection workflow is enabled.
- Create a new issue in the repository with any title and description.
- Wait for the GitHub Action workflow to execute on the
issues.openedevent. - Observe the workflow-generated comment on the newly created issue.
- 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-duplicatelabel is added to the same issue.
📷 Screenshot
Record
- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue