You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$titleText = "Azure Pipelines Tool-lib Localization update PR created - ID $($env:PR_NUMBER)"
97
-
$messageText = "Created tool-lib Localization update PR. Please review and approve/merge [PR $($env:PR_NUMBER)]($($env:PR_LINK)). Related article in [Wiki](https://mseng.visualstudio.com/AzureDevOps/_wiki/wikis/AzureDevOps.wiki/16150/Localization-update)."
98
-
$body = [PSCustomObject]@{
99
-
title = $titleText
100
-
text = $messageText
101
-
themeColor = "#FFFF00"
102
-
} | ConvertTo-Json
103
-
Invoke-RestMethod -Uri $(MSTeamsUri) -Method Post -Body $body -ContentType 'application/json'
95
+
# Two next tasks are used to notify about Localization update PRs
96
+
# Notifications are set by POST method to MS Teams webhook
97
+
# Body of message is compiled as Office 365 connector card
98
+
# More details about cards - https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#office-365-connector-card
$messageText = "Failed to create tool-lib Localization update PR. Please review the results of failed build [ID $($(Build.BuildId))]($($buildUrl)). Related article in [Wiki](https://mseng.visualstudio.com/AzureDevOps/_wiki/wikis/AzureDevOps.wiki/16150/Localization-update)."
111
-
$body = [PSCustomObject]@{
112
-
title = $titleText
113
-
text = $messageText
114
-
themeColor = "#FF0000"
115
-
} | ConvertTo-Json
116
-
Invoke-RestMethod -Uri $(MSTeamsUri) -Method Post -Body $body -ContentType 'application/json'
0 commit comments