-
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
Add a flag to optionally enable Github Markdown Formatting for diffs #1751
Add a flag to optionally enable Github Markdown Formatting for diffs #1751
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! Thanks for contributing!
@nishkrishnan any next steps for me here to get this merged? :) |
I'm just going to leave it open for a bit for other maintainers to look at and then I'll merge it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks
oh this one is such a great feature!! im looking forward to see it released to enable it! thank you so much |
Add flag to enable runatlantis/atlantis#1751 so that we can use color comments. Defaulted to false so no change by default.
What is the flag / how do you enable this feature? |
Add flag to enable runatlantis/atlantis#1751 so that we can use color comments. Defaulted to false so no change by default.
Heavily inspired from #1325 and looking at #1395. Thanks @raxod502-plaid for the base for the regex.
I added the ability to optionally enable Atlantis to do some Github markdown diff formatting, to enable color coded comments. Also added some tests using the original PR as reference for correctness. This has been pretty useful for me, and hopefully will be useful for the users asking for a bit more Github friendliness :)
This flag will turn comments into something like this:
New Atlantis Comment
Ran Plan for dir: `path/to/terraform` workspace: `default`Show Output
atlantis apply -d path/to/terraform
atlantis plan -d path/to/terraform
Note: Objects have changed outside of Terraform
Plan: 0 to add, 3 to change, 0 to destroy.
atlantis apply
atlantis unlock