api/services/slack: Consider add support custom icon emoji and url for incoming Slack webhooks

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

We can able to send custom Slack messages with custom emoji or icon url.

I am not so sure whether there was a related issue about this, i just couldn't find anything related to this, both in the issues and API documentation.

User experience goal

To see custom profile picture for incoming Slack messages from GitLab API.

Proposal

We can add new params like icon_emoji and icon_url to slack service api

Documentation

https://custom.custom.com/api/v4/projects/0/services/slack

We can add these field within properties field.

Parameter Type Required Description
icon_emoji string false an emoji code string to use in place of the default icon
icon_url string false an icon image URL string to use in place of the default icon.

What does success look like, and how can we measure that?

Success will look like so cool when incoming Slack webhook messages come with the custom profile picture.

Links / references

https://docs.gitlab.com/ee/api/services.html#createedit-slack-service https://api.slack.com/legacy/custom-integrations/incoming-webhooks#legacy-customizations

Edited by 🤖 GitLab Bot 🤖