Skip to content
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

review: cannot handle deletion only suggestions #127

Closed
chingor13 opened this issue Oct 5, 2020 · 0 comments · Fixed by #144
Closed

review: cannot handle deletion only suggestions #127

chingor13 opened this issue Oct 5, 2020 · 0 comments · Fixed by #144
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@chingor13
Copy link
Contributor

You cannot suggest an empty line, so we will have to group the suggestion as a 2 line change with either the previous line or next line.

@chingor13 chingor13 added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Oct 5, 2020
@chingor13 chingor13 changed the title review: cannot handle single line deletion review: cannot handle deletion only suggestions Oct 6, 2020
gcf-merge-on-green bot pushed a commit that referenced this issue Oct 9, 2020
When partitioning valid hunks from invalid hunks, if we detect addition-only or deletion-only changes, modify the hunk to include the previous or next line after the change (assuming it still fits in the valid commentable lines).

Fixes #126 
Fixes #127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants