Use attachment_color for embed colors in Discord integration
What does this MR do and why?
Currently, every embed sent by the discord integration uses the color #fc6d26
. With this MR, I'm changing it, so that the embeds use the color that the event message has set. If no color is set for a message, it falls back to the original color.
Screenshots or screen recordings
No changes to GitLab UI.
How to set up and validate locally
- Create a project
- Set up discord notifications
- Trigger events and observe the messages sent by the webhook (open/close issues/mrs, write comments, trigger pipelines, edit wiki)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.