code-pipeline-slack icon indicating copy to clipboard operation
code-pipeline-slack copied to clipboard

Slack Bot Not Updating Message

Open connor-tyndall opened this issue 5 years ago • 6 comments

The Slack Bot I have configured, it is not updating (chat.update) the original message. It is posting a new message for each change in my pipeline. Your gif shows that it should be updating the original message as the steps are being executed in the pipeline.

Please advise.

connor-tyndall avatar Jan 02 '19 21:01 connor-tyndall

Hey Connor, Did you add the permission scope to your bot?

It is required to add the permission scope 'Access user’s public channels' (channels:history).

rayjanoka avatar Jan 02 '19 22:01 rayjanoka

Yes, and it posting to the channel. Just not updating the messages. I should mention this is a private Slack channel (if that makes a difference).

image

connor-tyndall avatar Jan 02 '19 22:01 connor-tyndall

So that's what it was... it works if I use a PUBLIC slack channel.

connor-tyndall avatar Jan 02 '19 22:01 connor-tyndall

However, when I click on Build Logs it takes me to a null logGroup and null logStream.

image

connor-tyndall avatar Jan 02 '19 23:01 connor-tyndall

Well, I do not know if this suits to this issue, but the final result is far away from the result shown at build.gif on readme.md 🙁

Result: image

Gif: image

theodorosidmar avatar Jun 14 '19 17:06 theodorosidmar

@rayjanoka or @connor-tyndall I can't get the bot to post anything at all. I have the cloudformation stack deployed with the master branch of repo instead of the outdated deployment link. I also added in: SLACK_CHANNEL: !Ref SlackChannel I have both tokens set but no messaging ever appears. Curious if you could point me in the right direction to test the lambda

allantaylor8907 avatar May 19 '20 15:05 allantaylor8907