-
Notifications
You must be signed in to change notification settings - Fork 32
feat: added auto duplicated issue and pr detector #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Abhinandankaushik
wants to merge
9
commits into
apache:main
Choose a base branch
from
Abhinandankaushik:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
064cd41
added auto duplicated issue and pr detector
Abhinandankaushik 8df7918
fixed copilot feedback
Abhinandankaushik 82c2c4a
refactor: Remove unnecessary documentation files
Abhinandankaushik 5adec64
Update .github/scripts/detect-duplicates.py
Abhinandankaushik 17bf68d
Update .github/scripts/detect-duplicates.py
Abhinandankaushik 1c7dc4a
Update .github/workflows/duplicate-detector.yml
Abhinandankaushik f92754d
fixed feedback
Abhinandankaushik b03a2db
Merge branch 'main' into main
Abhinandankaushik eac2f6f
Merge branch 'main' into main
Abhinandankaushik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Git attributes for consistent line endings | ||
| # This ensures shell scripts always use LF (Unix) line endings | ||
|
|
||
| # Auto detect text files and perform LF normalization | ||
| * text=auto | ||
|
|
||
| # Shell scripts should always use LF line endings (even on Windows) | ||
| *.sh text eol=lf | ||
|
|
||
| # Explicitly declare files that should always have specific line endings | ||
| *.yml text eol=lf | ||
| *.yaml text eol=lf | ||
| *.json text eol=lf | ||
| *.md text eol=lf | ||
| *.py text eol=lf | ||
|
|
||
| # Denote binary files | ||
| *.png binary | ||
| *.jpg binary | ||
| *.jpeg binary | ||
| *.gif binary | ||
| *.ico binary | ||
| *.woff binary | ||
| *.woff2 binary | ||
| *.ttf binary | ||
| *.eot binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Duplicate Detection Configuration | ||
| # This file configures the duplicate issue and PR detection behavior | ||
|
|
||
| # Similarity threshold (0.0 to 1.0) - Issues with similarity above this will be flagged | ||
| # Default: 0.75 means 75% similarity | ||
| similarity_threshold: 0.75 | ||
|
|
||
| # High similarity threshold for exact matches | ||
| # Issues above this threshold will be marked as exact duplicates | ||
| # Default: 0.90 means 90% similarity | ||
| high_similarity_threshold: 0.90 | ||
|
|
||
| # Maximum number of past issues/PRs to check against | ||
| # Higher numbers = more thorough but slower | ||
| # Default: 200 | ||
| max_issues_to_check: 200 | ||
|
|
||
| # Automatically close issues that are exact matches (high similarity) | ||
| # Set to true to enable auto-closing | ||
| # Default: false (recommended to keep false for review) | ||
| auto_close_exact_match: false | ||
|
|
||
| # Label to add for possible duplicates | ||
| label_possible_duplicate: "possible-duplicate" | ||
|
|
||
| # Label to add for exact duplicates | ||
| label_exact_duplicate: "duplicate" | ||
|
|
||
| # Labels to exclude from duplicate checking | ||
| # Issues with these labels won't be considered as potential duplicates | ||
| exclude_labels: | ||
| - "wontfix" | ||
| - "invalid" | ||
| - "spam" | ||
|
|
||
| # Minimum text length (in characters) required for comparison | ||
| # Issues with less text will be skipped | ||
| # Default: 20 | ||
| min_text_length: 20 | ||
|
|
||
| # Additional settings (optional) | ||
| # Number of top similar issues to show in the comment | ||
| # Default: 5 | ||
| max_similar_to_show: 5 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.