asyncapi / asyncapi/cli

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

Open
#2,012 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
272
Forks
375
Avg merge
3h 22m
Merged PRs (30d)
8

Description

### Why do we need this improvement?

Currently, duplicate issues and pull requests are often created in the repository, leading to redundant discussions, repeated work, and extra maintenance overhead for maintainers. There is no automated mechanism in the CI/CD pipeline to detect potential duplicates and flag them proactively.

### How will this change help?

**I propose adding an automated duplicate issue detection mechanism in the CI/CD workflow that:**

- Scans newly created issues and pull requests for similarity with existing ones.
- Identifies potential duplicates based on title, description, and labels.
- Automatically marks suspected duplicates with a label such as possible-duplicate.
- Adds a bot comment suggesting existing related issues with links.
- Optionally closes the issue if an exact match is found (configurable behavior).

### How could it be implemented/designed?

GitHub Issue Created

GitHub Actions Trigger

Fetch Recent Issues

Compute Similarity (Rule-based / ML)

If duplicate likely:
→ Add Label
→ Post Bot Comment
→ (Optional) Auto-close
Else:
→ Do nothing

### 🚧 Breaking changes

No

### 👀 Have you checked for similar open issues?

- [x] I checked and didn't find a similar issue

### 🏢 Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md)

### Are you willing to work on this issue?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.