Skip to content

Commit

Permalink
slacknotifier: handle slack.Attachment pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Feb 21, 2024
1 parent 35b15c3 commit ac18195
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/notifier/slacknotifier/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ func filterSlackAttachments(args []interface{}) (slackAttachments []slack.Attach

slackAttachments = append(slackAttachments, a)

case *slack.Attachment:
if firstAttachmentOffset == -1 {
firstAttachmentOffset = idx
}

slackAttachments = append(slackAttachments, *a)

case types.SlackAttachmentCreator:
if firstAttachmentOffset == -1 {
firstAttachmentOffset = idx
Expand Down

0 comments on commit ac18195

Please sign in to comment.