Reference @user that sent slack webhook command

step
slack
#1

Hi everyone

Is there a possibility to capture Slack User who used the Slack command to trigger a Bitrise build (via webhook)?

Why?
We have a white-label app that builds we build from a single Slack channel with few ENV arguments provided. There’s a “Send Slack message” step at the end of the workflow that sends a build success/fail message to that single channel. The issue is that there could be multiple users building multiple apps at once resulting multiple similar messages popping into the slack channel at once. It’ll be good if the “Send Slack message” step could reference the user which requested that build.

0 Likes

#2

Howdy! You might find this blog post useful:

It’s possible to specify envars when you trigger a Slack build. This would rely on folks putting that info in manually each time.

As far as I know there’s no way to automatically retrieve the user from the build trigger.

0 Likes

#4

Hello
Thanks for your answer. We already use slack env variables feature and it’s great.
But we would really like that automated user capturing.

0 Likes

#5

Hello @Ekalips

0 Likes

closed #6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes