Custom Slack Integrations for Gitlab CI/CD Pipelines

Replace this template with your information

Describe your question in as much detail as possible:
i use GitLab Enterprise Edition. i have integrated Gitlab with Slack and i can get notification from the status of the pipeline for protected branches (dev, stage, production).i am wondering if i can do that

  1. send slack notification in case production branch only and ignore the remain branches.
  2. The notification about the failure should be sent only once when the test fails. Another notification should be sent when the test passes again. to minimize the amount of notification
  • What are you seeing, and how does that differ from what you expect to see?
    the notification is being sent to the slack channel in the case pipeline failed for all protected branches.