Allowing multiple integrations of a single project to Microsoft Teams
Problem to solve
Via the integration setting, I can only set-up one Microsoft Teams integration.
I wish to create one Microsoft Teams channel for each branch of my project (or at least some of them). I.e. I wish channel XXX to post messages when something happens on branch B1, channel YYY to post messages when something happens on B2 etc...
I tried to simply set a webhook for each of my channels but the message sent by GitLab is then not formatted in a way that Microsoft Teams can interpret it (error 400 Summary or Text is required.
).
Intended users
- Parker (Product Manager)
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Simone (Software Engineer in Test)
- Allison (Application Ops)
Further details
Several teams of a company are working on a common project. Each team works on its own branch and uses its own Microsoft Teams team (I did not choose the names). Every team wishes to get notifications when their branch is being modified and the project manager wishes to get notifications when branches are merged.
Proposal
I see two ways to achieve this:
- in the Integration settings, allow for more than one integration of each kind. When the user is on https://gitlab.com/MYTEAM/MYPROJECT/-/services/microsoft_teams/edit there is a Add new notifications button
- In the Webhooks settings, allow a menu to chose the message formatting (one for each integration that already exists and even one custom?). When the user is on https://gitlab.com/MYTEAM/MYPROJECT/hooks a dropdown menu allows formatting the json message according to the specifications of different tools.
Permissions and Security
I believe this does not require more permissions than the existing integration.