mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
## Summary Implements automated detection of potential duplicate issues using GitHub Actions. ## Implementation Details - Uses `wow-actions/potential-duplicates@v1` action - Triggers on issue `opened` and `edited` events - Configured with **90% similarity threshold** to minimize false positives - Automatically adds `potential-duplicate` label and comment with links to similar issues ## Rationale for 90% Threshold Based on manual testing with the `gh_tool` CLI: - 85% threshold produced too many false positives from template-based matches - True duplicates typically have 90%+ similarity - Uses Damerau-Levenshtein distance algorithm (same as manual tool) ## Testing - ✅ YAML syntax validated - ✅ Pre-commit hooks passed (lint + ts-check) - ✅ Created `potential-duplicate` label in repository - Manual testing of similar configuration showed good results at 90% threshold ## Dependencies - Depends on #8166 (add-gh-tools-cli branch) being merged first - This PR adds the automation layer on top of the manual tooling 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>