peter-evans / slash-command-dispatch

A GitHub action that facilitates "ChatOps" by creating repository dispatch events for slash commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Demo] ChatOps

peter-evans opened this issue · comments

ChatOps Demo

The following slash commands are dispatched to slash-command-dispatch-processor repository to be processed by these workflows. On completion the workflows add a 🎉 reaction to the comment containing the slash command.

/hello-world
/hello-workflow
/ping [<args> ...]
/help

The following commands are dispatched to this repository and processed by these workflows.

/hello-world-local
/ping-local [<args> ...]

Feel free to try out these slash commands 💬

/hello-world-local

/ping-local with some args

pong with some args

/hello-world

/ping these are arguments passed to the command

pong these are arguments passed to the command

/hello-world

/hello-world

/ping 你好,世界!

pong 你好,世界!

Just wanted to say that this is an amazing idea. I currently have no use case for it, but I'm sure that I will in the near future :)

/ping Ferhat

pong Ferhat

/ping

pong

/ping ahmed

pong ahmed

/hello-world

/hello-world

This is perfect thanks @peter-evans

/hello-world

/hello-world

/help

Command Description
/hello-world Receive a greeting from the world
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting from the world (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/hello-world

/hello-world

/ping

pong

/help

Command Description
/hello-world Receive a greeting from the world
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting from the world (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/ping

pong

/ping

pong

/help

Command Description
/hello-world Receive a greeting from the world
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting from the world (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/help

Command Description
/hello-world Receive a greeting from the world
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting from the world (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/hello-world

/hello-world

/hello-world

/hello-world

/hello-world

/ping-local minor

pong minor

/hello-world

/hello-world

commented

/help

Command Description
/hello-world Receive a greeting
/hello-workflow Receive a greeting (using workflow_dispatch)
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)
commented

/ping let's have some fun dude

pong let's have some fun dude

/hello-workflow

/hello-world

/hello-workflow

/hello-world

commented

/hello-world

/hello-word

/hello-world

/hello-world-local

/hello-world

/hello-world

/hello-world

/help

Command Description
/hello-world Receive a greeting
/hello-workflow Receive a greeting (using workflow_dispatch)
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/help

Command Description
/hello-world Receive a greeting
/hello-workflow Receive a greeting (using workflow_dispatch)
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/hello-world

/ping

pong

/hello-world

/help

Command Description
/hello-world Receive a greeting
/hello-workflow Receive a greeting (using workflow_dispatch)
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/ping me

pong me

/ping hubot

pong hubot

/hello-world-local

/hello-world

/hello-world

/hello-world

/hello-world

/ping hello

pong hello

/help

Command Description
/hello-world Receive a greeting
/hello-workflow Receive a greeting (using workflow_dispatch)
/ping [<args> ...] Echos back a list of arguments
/hello-world-local Receive a greeting (local execution)
/ping-local [<args> ...] Echos back a list of arguments (local execution)

/hello-world-local