slash-command-dispatch
slash-command-dispatch copied to clipboard
[Demo] Slash command code formatting - Python
Slash command code formatting - Python
Slash commands can be used to execute code formatting tools on pull request branches. The slash commands are dispatched to slash-command-dispatch-processor repository to be processed by workflows here.
The code formatting workflow does the following:
- Check out the pull request branch
- Execute the code formatting tool
- Commit the changes to the pull request branch
- Add a :tada: reaction to the comment containing the slash command
The following command formats Python using Black
/black
The demo can be reset with this command.
/reset-demo
Feel free to try it out! 💬
/black
/reset-demo
/black
/black
/reset-demo
/reset-demo
/black
/reset-demo
/reset-demo
/reset-demo
/ping
/black
/reset-demo
/black
/black
/reset-demo
/black
/reset-demo
hello-workflow
/reset-demo
/black
/reset-demo
/black
/reset-demo
/black
/black
/black
/black
/reset-demo
/black