cathrynlavery/PR Dedup & Rank
Detect duplicate/overlapping PRs and rank quality to surface the best candidate
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token with pull request, issues, and contents permissions | no | ${{ github.token }} |
| file-overlap-threshold | Threshold (0-1) for file overlap to flag likely duplicates | no | 0.6 |
| semantic-threshold | Threshold (0-1) for title/body semantic similarity | no | 0.75 |
| branch-threshold | Threshold (0-1) for branch-name similarity | no | 0.7 |
| duplicate-threshold | Overall weighted duplicate confidence threshold | no | 0.72 |
| auto-close-weaker | Whether to automatically close lower-quality duplicate PR | no | false |
| label-name | Label to apply to weaker duplicate candidates | no | duplicate-candidate |
| repos | Comma-separated repos to scan in scheduled mode (owner/repo). Defaults to current repo | no | "" |
| leaderboard-issue-title | Issue title used for scheduled leaderboard updates | no | PR Dedup Leaderboard |
| max-open-prs | Safety cap for number of open PRs scanned in scheduled mode | no | 100 |
Outputs
| name | description |
|---|---|
| duplicate-found | true if a duplicate candidate was detected for the current PR |
| strongest-match-pr | PR number of strongest duplicate match |
| weaker-pr | PR number labeled/closed as weaker candidate |