再Repo的secrets加入TEAMS_WEBHOOK_URL即可
2025/02/28
2023/09/03
透過Teams Webhooks and connectors 提及某個人
格式如下:
結果:
參考資料:
https://stackoverflow.com/questions/48574994/mention-via-incoming-webhook-in-ms-teams
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "2022"
},
{
"type": "TextBlock",
"text": "Hi <at>Peter Fang</at>"
}
],
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>Peter Fang</at>",
"mentioned": {
"id": "對方email",
"name": "顯示名稱"
}
}
]
}
}
}
]
}
結果:
參考資料:
https://stackoverflow.com/questions/48574994/mention-via-incoming-webhook-in-ms-teams
透過Yeoman 建立Teams範本
Yeoman是一個專案生成器,可以透過它來降低每次起專案的配置及其他繁瑣事務
Yeoman它有提供不少的生成器,可以再「Discovering generators」找到其他生成器
參考資料:
公司目前通訊軟體用Teams,部屬的服務我將其部屬再GCP上
我希望能做到每個月底透過CI/CD去自動呼叫API並且發送到Teams團隊中,減少我每個月要上去Google Cloud Console看價格並匯報給我主管
https://yeoman.io/
https://yeoman.io/generators/
https://learn.microsoft.com/zh-tw/training/modules/msteams-webhooks-connectors//
Yeoman它有提供不少的生成器,可以再「Discovering generators」找到其他生成器
參考資料:
公司目前通訊軟體用Teams,部屬的服務我將其部屬再GCP上
我希望能做到每個月底透過CI/CD去自動呼叫API並且發送到Teams團隊中,減少我每個月要上去Google Cloud Console看價格並匯報給我主管
#安裝Yeoman及Teams範本建立器
npm install yo generator-teams -g
#開始回答問題
yo teams
透過Yeoman產生出來難免會套件上衝突,但修復那些應該不是太大問題
https://yeoman.io/
https://yeoman.io/generators/
https://learn.microsoft.com/zh-tw/training/modules/msteams-webhooks-connectors//
2023/05/17
訂閱:
文章 (Atom)