[go: up one dir, main page]

Skip to content

Add a control to merge request comment box to insert suggestion with change reverted

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

When reviewing a Merge request it's common to encounter inadvertent changes, that one might want to revert.
To be kind I typically type a "```suggestion" block that suggests reverting the change, which can be quickly applied.

I'd like to see a control added to the "Commenting on lines" message box that would insert that revert suggestion snippet.
I imagine it could fit in well in between the buttons that add lists, tables etc, as seen in the (unedited) screenshot below. review-suggestion

Such a button could make it easier for reviewer & developer (sometimes the same person) to undo changes quickly, without leaving GitLab & breaking flow.
In particular it would alleviate both from having to comment "Revert this" and apply that change somewhere else.

Edited by 🤖 GitLab Bot 🤖