atlantis icon indicating copy to clipboard operation
atlantis copied to clipboard

feat: do not react with emoji if "EmojiReaction" flag is empty

Open CaioAugustoo opened this issue 11 months ago • 3 comments

what

  • do not react comments with emoji in case "EmojiReaction" flag is empty

why

According to https://github.com/runatlantis/atlantis/pull/3360: "setting the emoji-reaction property to an empty string should disable comment reactions. This is not working, and the default eyes emoji continues to be used."

Also, as @jamengual mentioned: "It sounds weird to me that we will add another config flag to disable the emojis, I think this logic needs to be fixed. it should be disabled by default like all the other flags"

This PR makes "EmojiReaction" flag default value to an empty string. In case "EmojiReaction" flag is empty no comment will be reacted.

tests

  • [X] I have tested my changes by running local tests with make test
  • [X] I have tested my changes by running local tests with make build
  • [X] I have tested my changes by running local tests in my own repository

references

  • https://github.com/runatlantis/atlantis/issues/3457
  • https://github.com/runatlantis/atlantis/issues/4357#issuecomment-2005555805

CaioAugustoo avatar Mar 21 '24 21:03 CaioAugustoo

Hi, @CaioAugustoo, why do we not make --emoji-reaction=" default to empty and fix the logic if needed instead of adding a flag to disable it?

The whole idea about my comment is that the flag should always be disabled by default.

jamengual avatar Mar 22 '24 21:03 jamengual

Hi, @CaioAugustoo, why do we not make --emoji-reaction=" default to empty and fix the logic if needed instead of adding a flag to disable it? The whole idea about my comment is that the flag should always be disabled by default.

@jamengual, Done! I made some changes. Let me know if it makes sense for you!

CaioAugustoo avatar Mar 24 '24 18:03 CaioAugustoo

Thank you @jamengual!

CaioAugustoo avatar Apr 02 '24 20:04 CaioAugustoo

not quite sure why e2e tests run on the merge commit

chenrui333 avatar May 21 '24 22:05 chenrui333

Thanks @CaioAugustoo for your first contribution to atlantis! 💯

chenrui333 avatar May 22 '24 18:05 chenrui333