[Demo] Slash command code formatting - Python by retepsnave · Pull Request #28 · peter-evans/slash-command-dispatch
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 🎉 reaction to the comment containing the slash command
The following command formats Python using Black
The demo can be reset with this command.
Feel free to try it out! 💬