Skip to main content

PR Duplicate Command

Detect duplicate pull requests using semantic search across your issues and PR collections.

Syntax

Options

Examples

Check PR for duplicates

Adjust similarity threshold

Return more candidates

Dry-run mode

How it works

  1. Fetches PR details and changed file paths from GitHub
  2. Embeds the PR content: Title: ...\n\nBody: ...\n\nChanged Files:\n- path/a
  3. Searches both the collection (issues) and pr_collection (PRs) in Qdrant
  4. Deduplicates and sorts candidates by similarity score
  5. Optionally runs an LLM-based duplicate verdict on the top-3 issue candidates
  6. Returns a JSON result with candidates and duplicate assessment

Output

Configuration

To enable a dedicated PR collection, set qdrant.pr_collection in your config:
If pr_collection is not set, PRs are stored alongside issues in the main collection.

Indexing PRs first

Before running pr-duplicate, make sure PRs are indexed:

GitHub Actions integration

Run PR duplicate check on every PR:

Next steps

Index command

Index issues and PRs first

Configuration schema

Configure PR collection