cloudfoundry-community / slack-notification-resource

Concourse CI resource for sending notifications to Slack.
MIT License
75 stars 82 forks source link

support attachments #14

Closed r3dDoX closed 7 years ago

r3dDoX commented 8 years ago

First off, thanks for this resource, it helped me out perfectly.

I saw that Slack supports attachments in its message format like so:

{
  "text": "some text",
  "attachments": [
    {
      "text": "attachment text",
      "color": "good"
    }
  ]
}

This allows the user to have quite nicely styled additions to a message with some options.

This resource could handle this as well. In yaml, this could look like:

params:
  text: "some text"
  attachments:
    - text: "attachment text"
       color: good
    - text: "event more text in another attachment"

I could also help developing if you'd like some help.

o-orand commented 7 years ago

@r3dDoX it seems an existing PR #9 try to achieve that, but it seems a little bit outdated.

r3dDoX commented 7 years ago

@o-orand Oh yeah, I didn't see that one. Is anything happening to get this PR merged? May I help with something?

lnguyen commented 7 years ago

Can you guys fix merge conflict? I'll merge it in and cut new image? /cc @r3dDoX @o-orand

r3dDoX commented 7 years ago

@lnguyen I should be able to do that 👍 But not today, I think tomorrow I can do this

r3dDoX commented 7 years ago

Sorry for the delay guys, I was in my vacation and just tried to fix the merge conflicts yesterday. But unfortunately it is quite complicated so I'm reaching out to the initiator of the PR