-
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 "plan" to continued output statement #1034
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1034 +/- ##
==========================================
- Coverage 70.97% 70.91% -0.06%
==========================================
Files 71 71
Lines 5870 5876 +6
==========================================
+ Hits 4166 4167 +1
- Misses 1357 1362 +5
Partials 347 347
Continue to review full report at Codecov.
|
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.
This comment splitting applies to both apply and plan comments so this isn't accurate. I think you need to pass the type of comment and only add plan
if it's actually a plan comment.
@lkysow maybe I should change my approach. Instead of adding the word "plan" here should I just expand the matching located here: https://github.com/runatlantis/atlantis/blob/master/server/events/vcs/github_client.go#L168-L179 ? That would allow hiding of failed applies or discarding of locks via the UI. |
@crainte I don't think we want to hide failing applies because a partial apply may still make some changes. |
That's a good point. I'll move ahead with your suggestion of passing the type. |
0dd4392
to
b9ba66f
Compare
I'm waiting for the PR to be ready for review before I look at it. |
edit: rebased |
102a4b8
to
033f018
Compare
Let's take in a string to |
b62a103
to
6eebdd0
Compare
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, just one small change. Can you squash all your commits as well please.
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.
🎉
Fixes #1021 . |
Related to #1021
It looks like if the word "Plan" is added in the first line of comments made by atlantis hiding will work. Edited all vcs comments for consistency.