-
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
Minimizing comments from the Atlantis Bot #126
Comments
I really like this idea! Unfortunately I just looked and I can't find any API to hide comments: https://developer.github.com/v3/issues/comments/ I was thinking about just editing the previous comment in the case of "two plans are issued one after another" and putting the new plan. That would reduce a lot of the comment spam. |
Definitely! Your method of editing comments is sufficient, as it still reduces the clutter and gets around the suggested feature not being included in the API as of yet. |
The other suggestion that would be related is to help reduce the length of a comment of using collapsable markdown sections? Though I believe this is a Github specific feature. Gitlab may not support this. Rendered
The Markdown syntax
|
Ahh interesting, so we could edit the previous plans/apply's and just add the details thing. |
It works on GitLab with:
So you can't use markdown within the Click me to collapse/fold.These details will remain hidden until expanded.
|
Could we wrap the logs as a collapsible block by default always for now? That would be a nice improvement without editing the previous plans/applys. |
You mean the plan/apply output? Yeah that's a pretty good idea. But I'd like to do it only if it's over a certain number of lines. If it's a small plan/apply output it's annoying to have to click the Expand button. |
No I think they're separate. The #203 should handle the specific case of GitHub where we need to split up the comment. |
I like the idea of defaulting to wrapping plan/apply output if text is over 'n' lines but I think it would be useful to have a configuration on atlantis to auto-collapse all TF plan/apply's in case a user prefers that. |
I opened an issue for a Hide Comment API: isaacs/github#1480 Feel free to vote / send to support. |
|
Looks like this is available via graphql api: https://developer.github.com/v4/mutation/minimizecomment/ |
@lkysow thoughts on if this could be reopened with the github v4 api enabling programatic hiding? |
I think an option to minimize old applies would still be helpful.. |
already implemented |
No need to use -var when running apply
As an Atlantis user certain PR's can get very difficult to read when going through the posted plans and apply failure/success posted by the Atlantis bot.
Last month GitHub released a feature which allows a user to collapse comments within a Pull Request. https://help.github.com/articles/managing-disruptive-comments/
This would be great for PR's where the HCL is not 100% and is undergoing an
atlantis plan/apply
then debug workflow.I would propose to auto hide messages in the following settings:
The text was updated successfully, but these errors were encountered: