Skip to content

[googlechat] Loose of cards v2 content #418

@loganmzz

Description

@loganmzz

When specifying this card v2 content:

- sections:
  - widgets:
    - textParagraph:
        textSyntax: "MARKDOWN"
        text: "❗Application **[my-app](https://argocd.local/applications/my-app)** on **MyEnv** has degraded."
    - columns:
        columnItems:
        - widgets:
          - decoratedText:
              topLabelText:
                textSyntax: "MARKDOWN"
                text: "*Health Status*"
              text: "Degraded"
        - widgets:
          - decoratedText:
              topLabelText:
                textSyntax: "MARKDOWN"
                text: "*Repository*"
              contentText:
                textSyntax: "MARKDOWN"
                text: "https://github.com/loganmzz/my-repository"

The resulting JSON sent to Google Chat endpoint is:

{
  "text": "",
  "cardsV2": [
    {
      "card": {
        "sections": [
          {
            "widgets": [
              {
                "textParagraph": {
                  "text": "Application **[my-app](https://argocd.local/applications/my-app)** on **MyEnv** has degraded."
                }
              },
              {
                "columns": {
                  "columnItems": [
                    {
                      "widgets": [
                        {
                          "decoratedText": {
                            "text": "Degraded"
                          }
                        }
                      ]
                    },
                    {
                      "widgets": [
                        {
                          "decoratedText": {}
                        }
                      ]
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "cardId": "068cbc4d-3520-4e59-ba32-86a57ce873d4"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions