peter-evans / slash-command-dispatch

A GitHub action that facilitates "ChatOps" by creating repository dispatch events for slash commands
MIT License
588 stars 53 forks source link

Support Bot as an actor #297

Open khoinguyen opened 1 year ago

khoinguyen commented 1 year ago

In my use case, I make several commands as building blocks, then I have a cron workflow to trigger the commands in some sequences. In that case, I want to have the comment as a bot to differentiate between comments from contributors and scheduled actions. The bot token is perfect in this case, IMO.

This PR tested in my case. Just add allow-bots input to, of course, allow to dispatch the commands.

As a preventive, the bot name must be ends with [bot] as per GitHub action convention

with:
  allow-bots: hello[bot]
Ehhamid611 commented 4 months ago

H