v0.22.3: PR comment shows "apply" even if "apply" is omitted from allow-commands #3014
-
I hope someone can help. Today I setup Atlantis v0.22.3 in a test environment so that I can play with it. I am using BitBucket Server. I believe I have it working and all is good. That being said I have configured Atlantis to only allow the "version and plan" commands by setting the following environment variable...
...I have also added my BitBucket environment variables and a repo-config. I believe that the "ATLANTIS_ALLOW_COMMANDS" variable is working because when I comment on the PR with "atlantis apply -d ." it says...
If I then comment "atlantis plan" on an existing PR, Atlantis runs and comments on my PR. The Atlantis comment reads...
As I disabled the 'apply' command I assumed it would hide the "To apply this plan, comment:" and the "To apply all unapplied plans from this pull request, comment:" sections. Is my assumption correct, should it do that or am I doing something wrong? Many thanks, Lee |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Oh perhaps that is a bug? @krrrr38 depending on the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply @nitrocode. I did consider that it could be a bug. I just want to pick up on something you said. You asked @krrrr38, "do we want to change the comment to remove plan/apply from it?". Just to be clear; because I have "version,plan" in the ATLANTIS_ALLOW_COMMANDS variable then I would like the 'plan' instructions to remain and the 'apply' instructions to be removed from the comment. I hope that makes sense. Thank you! |
Beta Was this translation helpful? Give feedback.
Thank you for your reply @nitrocode.
I did consider that it could be a bug.
I just want to pick up on something you said. You asked @krrrr38, "do we want to change the comment to remove plan/apply from it?". Just to be clear; because I have "version,plan" in the ATLANTIS_ALLOW_COMMANDS variable then I would like the 'plan' instructions to remain and the 'apply' instructions to be removed from the comment.
I hope that makes sense.
Thank you!