integrations / slack

Bring your code to the conversations you care about with GitHub's integration for Slack
https://slack.github.com/
MIT License
3.1k stars 489 forks source link

Slash Command Support for Bot Users #1369

Open mnovitsk opened 2 years ago

mnovitsk commented 2 years ago

Is your feature request related to a problem? Please describe. Slash commands do not work properly for a Slack Jenkins Bot user we use with our automation. The specific commands we are interested in are the /github subscribe and /github unsubscribe actions. If a user inputs the commands, then the appropriate actions occur. If a bot user inputs the commands, then nothing happens. I have automation built to migrate a large number of repositories and it would be nice to be able to automate the slack channel subscriptions to the repositories instead of having to manually input them.

Describe the solution you'd like It would be great if messages delivered to a channel from a bot user could invoke the subscribe and unsubscribe slash commands.

Describe alternatives you've considered I've tried various formatting options for the slackSend notifications. Leaving them as standard, formatting them as text with the sendAsText: true setting, etc. The messages appear in the slack channel, but the slash commands do not invoke the appropriate action from GitHub.

Additional context I'm unsure if there would be a way to white-list a Slack Bot's API Token with the service, if we need to somehow add the Slack Bot's API token to the GitHub Org, or if this interaction is just not possible.

dharmishadoshi commented 2 years ago

I am seeing the same issue, is there a solution to this?

sgarbesi commented 1 year ago

Would be extremely useful, we have to basically create our own GitHub bot because of this not being available.

An alternative to the original post could be allowing plain-text to be sent directly to the GitHub bot as commands.