Skip to content

Commit

Permalink
* Fix typo for 'weight' to correct format of title (#4222)
Browse files Browse the repository at this point in the history
* Add wrap to content of adapter card to avoid truancating long text

Signed-off-by: Dima Xu <[email protected]>
Co-authored-by: Dima Xu <[email protected]>
  • Loading branch information
dimahsu and Dima Xu authored Jan 30, 2025
1 parent d0eaa9f commit b5d1a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notify/msteamsv2/msteamsv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Content struct {
type Body struct {
Type string `json:"type"`
Text string `json:"text"`
Weight string `json:"weigth,omitempty"`
Weight string `json:"weight,omitempty"`
Size string `json:"size,omitempty"`
Wrap bool `json:"wrap,omitempty"`
Style string `json:"style,omitempty"`
Expand Down Expand Up @@ -170,6 +170,7 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
{
Type: "TextBlock",
Text: text,
Wrap: true,
},
},
Msteams: Msteams{
Expand Down

0 comments on commit b5d1a64

Please sign in to comment.