Skip to content

BUG: Exclude Current Issue from Semantic Duplicate Matching #1272

@DhruvK278

Description

@DhruvK278

Is there an existing issue for this?

  • 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:

Screenshot

Image

Record

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

CI/CDbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions