Skip to content

ci: add duplicate issue detection workflow (fixes #2012)#2168

Open
gavin913427-hash wants to merge 1 commit intoasyncapi:masterfrom
gavin913427-hash:fix/duplicate-issue-detection
Open

ci: add duplicate issue detection workflow (fixes #2012)#2168
gavin913427-hash wants to merge 1 commit intoasyncapi:masterfrom
gavin913427-hash:fix/duplicate-issue-detection

Conversation

@gavin913427-hash
Copy link
Copy Markdown

What

Add automated duplicate issue detection via GitHub Actions.

Why

Currently, duplicate issues are often created in the repository, leading to redundant discussions, repeated work, and extra maintenance overhead for maintainers. There's no automated mechanism to detect potential duplicates.

How

  • New GitHub Actions workflow triggers when issues are opened
  • Compares the new issue title with existing open issues
  • Identifies potential duplicates based on title word overlap (3+ common words)
  • Posts a comment listing potential duplicates
  • Adds possible-duplicate label

Changes

File Change
.github/workflows/duplicate-issue-detection.yml NEW: Automated duplicate detection workflow

Testing

The workflow will run automatically when new issues are created. To test:

  1. Create a new issue with a title similar to an existing one
  2. The bot should post a comment listing potential duplicates
  3. The possible-duplicate label should be added

Fixes #2012

Add a GitHub Actions workflow that automatically detects potential
duplicate issues when new issues are created.

Features:
- Compares title similarity with existing open issues
- Posts a comment listing potential duplicates
- Adds 'possible-duplicate' label
- Only flags issues with significant title overlap (3+ common words)

Fixes asyncapi#2012
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 4, 2026

⚠️ No Changeset found

Latest commit: a908eec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[FEATURE]: CI/CD: Duplicate Issue Detection and Automatic Marking

1 participant