顯示具有 Teams 標籤的文章。 顯示所有文章
顯示具有 Teams 標籤的文章。 顯示所有文章

2023/09/03

透過Teams Webhooks and connectors 提及某個人

格式如下:
{
  "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看價格並匯報給我主管

#安裝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

Jenkins 結合Teams接收Build訊息

先進入Teams團隊或頻道,點擊右上角的「...」點擊連接器

選擇Jenkins安裝,並重複上一個動作點擊設定