-
Notifications
You must be signed in to change notification settings - Fork 563
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
Fix incorrect logic for extending patch size beyond original file length #1115
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
CI Failure Feedback 🧐(Checks updated until commit a06670b)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR Type
Bug fix
Description
extend_patch
function where the logic for extending the patch size was incorrect for modified files.extended_size2
based on the original file length, as it was not applicable for files that have been modified and potentially increased in size.Changes walkthrough 📝
git_patch_processing.py
Fix patch extension logic for modified files
pr_agent/algo/git_patch_processing.py
length
length