Instruction to configure notifications via MS Teams
TOC:
Guide to create and configure team in Microsoft Teams.
Steps to create a team:
- Login to your Microsoft Teams account.
- Switch to Teams view.
- Click on
Join or create a team
. - Select
Create a team
and click onCreate team
button. - Select
From scratch
. - In
What kind of team will this be?
selectPrivate
. - Enter a name for your team and click on
Create
button. - Skip any additional steps.
Steps to add Connector to team:
- In the main team page, click on
three dots
(More options) next to theMeet
button. - In dropdown menu, select
Connectors
. - In the list of available connectors, select
Incoming Webhook
and click onAdd
. - In dialog, click on
Add
button.
Steps to create more channels:
- Click on
three dots
(More options) next to the team name. - In the dropdown menu, select
Add channel
. - In the
Create a channel
dialog:- Enter a name for your channel.
- Select
Private
orPublic
. - Click on
Create
button.
Steps to configure Connectors in Microsoft Teams:
❗ You can reproduce this process for each channel.
- Click on
three dots
(More options) next to the channel name. - In the dropdown menu, select
Connectors
. - Next to
Incoming Webhook
click onConfigure
. - In
Connectors for ...
dialog:- Enter name of Connector that will post to this channel. Example:
Gitea Bot
. - Click on
Create
button.
- Enter name of Connector that will post to this channel. Example:
- Copy the URL below and save it to later use (channel webhook URL).
- Click on
Done
button.
Guide to configure system webhook in Gitea.
Steps to configure webhook:
- Login to Gitea as administrator.
- Click on
Profile and settings
menu next to profile icon. - In dropdown menu, select
Site administration
. - Navigate to
Webhooks
. - In
System Webhooks
section, click onAdd Webhook
button and selectMicrosoft Teams
. - In the
Add System Webhook
page:Target URL
: channel webhook URL.Trigger On:
selectAll events
.Branch filter
: leave*
- notify about all branches or enter specific branch name.- Click on
Add Webhook
button.