-
Notifications
You must be signed in to change notification settings - Fork 40
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
prevent comment line out of diff #117
Conversation
Thanks! I realize I have not tested this part properly. I added some approval tests in master, like this: It would help understand this change. To see how those results differ. So I'd like you to rebase, or merge, with my master and update the test cases. |
After merge I had a broken test. |
This is released now! Thanks! |
Motivation
I have a problem with Gitlab implementation.
So, after research, I made this pull request.
Detailes
isLineInDiff
was work incorrectly. I changed check newlines by another map, but it shows for us mapnewLineToLineInDiffTable
works incorrectly. See below the next steps for another PR.newLineToOldLineTable
didn't parse correctly.Next steps for another PR.
As far as I understand the method
findLineInDiff
is for GitHub implementation.So,
newLineToLineInDiffTable
didn't work for deleted lines.newLineToLineInDiffTable
didn't work for multi changes in one file (many @@ sections in one file)I'll show for my PR example: