-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Trim backticks from MR comments (for Gitlab) #5244
Conversation
Signed-off-by: Clement Debiaune <[email protected]>
7a936d9
to
2e9e270
Compare
This doesn't change the appearance of the comment, right? I think we still want the suggested command to appear as a "command" in backticks, is that formatting handled elsewhere? |
Indeed. It only changes the parsing of the commands to ignore backticks. It's a minor change for convenience with people using Gitlab, it will be invisible to everyone else. |
Oh I see, yeah makes sense to me! |
thanks, @Unibozu, for the contribution |
what
Small change to trim backticks (
`
) from MR comments to help with copy pasting atlantis commands from Gitlab. This is in addition to trimming whitespace.why
Gitlab adds backticks when copy pasting code, which currently fails with atlantis and requires having to remove them before submitting the comment.
For example, copying this pre-populated code
Becomes
tests
Added a unit test